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 containingUncertainObject
fields by invoking aUncertainifier
on 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 class
UncertainifyFilter.Par<UO extends UncertainObject>
Parameterization class.
-
Field Summary
Fields Modifier and Type Field Description protected Uncertainifier<UO>
generator
Class to derive an uncertain object from a certain vector.protected boolean
keep
Flag to keep the original data.private static Logging
LOG
Class logger.protected java.util.Random
rand
Random 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 MultipleObjectsBundle
filter(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:ObjectFilter
Filter a set of object packages.- Specified by:
filter
in interfaceObjectFilter
- Parameters:
objects
- Object to filter- Returns:
- Filtered objects
-
-