Class UncertainifyFilter<UO extends UncertainObject>
- java.lang.Object
-
- elki.datasource.filter.typeconversions.UncertainifyFilter<UO>
-
- Type Parameters:
UO- Uncertain object type
- All Implemented Interfaces:
ObjectFilter
public class UncertainifyFilter<UO extends UncertainObject> extends java.lang.Object implements ObjectFilter
Filter class to transform a database containing vector fields into a database containingUncertainObjectfields by invoking aUncertainifieron each vector.The purpose for that is to use those transformed databases in experiments regarding uncertain data in some way.
- Since:
- 0.7.0
- Author:
- Alexander Koos, Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUncertainifyFilter.Par<UO extends UncertainObject>Parameterization class.
-
Field Summary
Fields Modifier and Type Field Description protected Uncertainifier<UO>generatorClass to derive an uncertain object from a certain vector.protected booleankeepFlag to keep the original data.private static LoggingLOGClass logger.protected java.util.RandomrandRandom generator.
-
Constructor Summary
Constructors Constructor Description UncertainifyFilter(Uncertainifier<UO> generator, boolean keep, RandomFactory randf)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MultipleObjectsBundlefilter(MultipleObjectsBundle objects)Filter a set of object packages.
-
-
-
Field Detail
-
LOG
private static final Logging LOG
Class logger.
-
generator
protected Uncertainifier<UO extends UncertainObject> generator
Class to derive an uncertain object from a certain vector.
-
keep
protected boolean keep
Flag to keep the original data.
-
rand
protected java.util.Random rand
Random generator.
-
-
Constructor Detail
-
UncertainifyFilter
public UncertainifyFilter(Uncertainifier<UO> generator, boolean keep, RandomFactory randf)
Constructor.- Parameters:
generator- Generator for uncertain objectskeep- Flag to keep the original datarandf- Random factory
-
-
Method Detail
-
filter
public MultipleObjectsBundle filter(MultipleObjectsBundle objects)
Description copied from interface:ObjectFilterFilter a set of object packages.- Specified by:
filterin interfaceObjectFilter- Parameters:
objects- Object to filter- Returns:
- Filtered objects
-
-