Package elki.datasource.parser
Class NumberVectorLabelParser.Par<V extends elki.data.NumberVector>
- java.lang.Object
-
- elki.datasource.parser.AbstractStreamingParser.Par
-
- elki.datasource.parser.NumberVectorLabelParser.Par<V>
-
- All Implemented Interfaces:
elki.utilities.optionhandling.Parameterizer
- Direct Known Subclasses:
CategorialDataAsNumberVectorParser.Par,LibSVMFormatParser.Par,SparseNumberVectorLabelParser.Par,TermFrequencyParser.Par
- Enclosing class:
- NumberVectorLabelParser<V extends elki.data.NumberVector>
public static class NumberVectorLabelParser.Par<V extends elki.data.NumberVector> extends AbstractStreamingParser.Par
Parameterization class.- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description protected elki.data.NumberVector.Factory<V>factoryFactory object.static elki.utilities.optionhandling.OptionIDLABEL_INDICES_IDA comma separated list of the indices of labels (may be numeric), counting whitespace separated entries in a line starting with 0.protected long[]labelIndicesKeeps the indices of the attributes to be treated as a string label.static elki.utilities.optionhandling.OptionIDVECTOR_TYPE_IDParameter to specify the type of vectors to produce.-
Fields inherited from class elki.datasource.parser.AbstractStreamingParser.Par
format
-
-
Constructor Summary
Constructors Constructor Description Par()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(elki.utilities.optionhandling.parameterization.Parameterization config)protected voidgetFactory(elki.utilities.optionhandling.parameterization.Parameterization config)Get the object factory.protected voidgetLabelIndices(elki.utilities.optionhandling.parameterization.Parameterization config)Get the label indices.NumberVectorLabelParser<V>make()
-
-
-
Field Detail
-
LABEL_INDICES_ID
public static final elki.utilities.optionhandling.OptionID LABEL_INDICES_ID
A comma separated list of the indices of labels (may be numeric), counting whitespace separated entries in a line starting with 0. The corresponding entries will be treated as a label.
-
VECTOR_TYPE_ID
public static final elki.utilities.optionhandling.OptionID VECTOR_TYPE_ID
Parameter to specify the type of vectors to produce.
-
labelIndices
protected long[] labelIndices
Keeps the indices of the attributes to be treated as a string label.
-
factory
protected elki.data.NumberVector.Factory<V extends elki.data.NumberVector> factory
Factory object.
-
-
Method Detail
-
configure
public void configure(elki.utilities.optionhandling.parameterization.Parameterization config)
- Specified by:
configurein interfaceelki.utilities.optionhandling.Parameterizer- Overrides:
configurein classAbstractStreamingParser.Par
-
getFactory
protected void getFactory(elki.utilities.optionhandling.parameterization.Parameterization config)
Get the object factory.- Parameters:
config- Parameterization
-
getLabelIndices
protected void getLabelIndices(elki.utilities.optionhandling.parameterization.Parameterization config)
Get the label indices.- Parameters:
config- Parameterization
-
make
public NumberVectorLabelParser<V> make()
- Specified by:
makein interfaceelki.utilities.optionhandling.Parameterizer- Specified by:
makein classAbstractStreamingParser.Par
-
-