|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.datasource.filter.ClassLabelFilter
public class ClassLabelFilter
Class that turns a label column into a class label column.
Nested Class Summary | |
---|---|
static class |
ClassLabelFilter.Parameterizer
Parameterization class. |
Field Summary | |
---|---|
static OptionID |
CLASS_LABEL_CLASS_ID
Parameter to specify the class of occurring class labels. |
static OptionID |
CLASS_LABEL_INDEX_ID
Optional parameter that specifies the index of the label to be used as class label, must be an integer equal to or greater than 0. |
private ClassLabel.Factory<?> |
classLabelFactory
The class label class to use. |
private int |
classLabelIndex
The index of the label to be used as class label, null if no class label is specified. |
Constructor Summary | |
---|---|
ClassLabelFilter(int classLabelIndex,
ClassLabel.Factory<?> classLabelFactory)
Constructor. |
Method Summary | |
---|---|
MultipleObjectsBundle |
filter(MultipleObjectsBundle objects)
Filter a set of object packages. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final OptionID CLASS_LABEL_INDEX_ID
Key: -dbc.classLabelIndex
public static final OptionID CLASS_LABEL_CLASS_ID
Key: -dbc.classLabelClass
private final int classLabelIndex
private final ClassLabel.Factory<?> classLabelFactory
Constructor Detail |
---|
public ClassLabelFilter(int classLabelIndex, ClassLabel.Factory<?> classLabelFactory)
classLabelIndex
- The index to convertclassLabelFactory
- The class label factory to useMethod Detail |
---|
public MultipleObjectsBundle filter(MultipleObjectsBundle objects)
ObjectFilter
filter
in interface ObjectFilter
objects
- Object to filter
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |