Class WeightedUncertainSplitFilter
- java.lang.Object
-
- elki.datasource.filter.AbstractConversionFilter<NumberVector,WeightedDiscreteUncertainObject>
-
- elki.datasource.filter.typeconversions.WeightedUncertainSplitFilter
-
- All Implemented Interfaces:
ObjectFilter
public class WeightedUncertainSplitFilter extends AbstractConversionFilter<NumberVector,WeightedDiscreteUncertainObject>
Filter to transform a single vector into a set of samples and weights to interpret as uncertain observation.- Since:
- 0.7.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WeightedUncertainSplitFilter.Par
Parameterization class.
-
Constructor Summary
Constructors Constructor Description WeightedUncertainSplitFilter(int dims, int probcol)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SimpleTypeInformation<WeightedDiscreteUncertainObject>
convertedType(SimpleTypeInformation<NumberVector> in)
Get the output type from the input type after conversion.protected WeightedDiscreteUncertainObject
filterSingleObject(NumberVector vec)
Normalize a single instance.protected SimpleTypeInformation<? super NumberVector>
getInputTypeRestriction()
Get the input type restriction used for negotiating the data query.protected Logging
getLogger()
Class logger.-
Methods inherited from class elki.datasource.filter.AbstractConversionFilter
filter, prepareComplete, prepareProcessInstance, prepareStart, toString
-
-
-
-
Field Detail
-
LOG
private static final Logging LOG
Class logger.
-
dims
protected int dims
Data dimensionality.
-
mod
protected int mod
Modulo value for splitting.
-
probcol
protected int probcol
Column in which the probability is stored.
-
-
Method Detail
-
filterSingleObject
protected WeightedDiscreteUncertainObject filterSingleObject(NumberVector vec)
Description copied from class:AbstractConversionFilter
Normalize a single instance. You can implement this as UnsupportedOperationException if you override both public "normalize" functions!- Specified by:
filterSingleObject
in classAbstractConversionFilter<NumberVector,WeightedDiscreteUncertainObject>
- Parameters:
vec
- Database object to normalize- Returns:
- Normalized database object
-
getInputTypeRestriction
protected SimpleTypeInformation<? super NumberVector> getInputTypeRestriction()
Description copied from class:AbstractConversionFilter
Get the input type restriction used for negotiating the data query.- Specified by:
getInputTypeRestriction
in classAbstractConversionFilter<NumberVector,WeightedDiscreteUncertainObject>
- Returns:
- Type restriction
-
convertedType
protected SimpleTypeInformation<WeightedDiscreteUncertainObject> convertedType(SimpleTypeInformation<NumberVector> in)
Description copied from class:AbstractConversionFilter
Get the output type from the input type after conversion.- Specified by:
convertedType
in classAbstractConversionFilter<NumberVector,WeightedDiscreteUncertainObject>
- Parameters:
in
- input type restriction- Returns:
- output type restriction
-
getLogger
protected Logging getLogger()
Description copied from class:AbstractConversionFilter
Class logger.- Specified by:
getLogger
in classAbstractConversionFilter<NumberVector,WeightedDiscreteUncertainObject>
- Returns:
- Logger
-
-