de.lmu.ifi.dbs.elki.parser
Class DoubleVectorLabelParser
java.lang.Object
de.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable
de.lmu.ifi.dbs.elki.parser.AbstractParser<V>
de.lmu.ifi.dbs.elki.parser.RealVectorLabelParser<DoubleVector>
de.lmu.ifi.dbs.elki.parser.DoubleVectorLabelParser
- All Implemented Interfaces:
- LinebasedParser<DoubleVector>, Parser<DoubleVector>, Parameterizable
- Direct Known Subclasses:
- DoubleVectorLabelTransposingParser
public class DoubleVectorLabelParser
- extends RealVectorLabelParser<DoubleVector>
Provides a parser for parsing one point per line, attributes separated by
whitespace.
Several labels may be given per point. A label must not be parseable as
double. Lines starting with "#" will be ignored.
An index can be specified to identify an entry to be treated as class label.
This index counts all entries (numeric and labels as well) starting with 0.
- Author:
- Arthur Zimek
DoubleVectorLabelParser
public DoubleVectorLabelParser()
createDBObject
public DoubleVector createDBObject(List<Double> attributes)
- Creates a DoubleVector out of the given attribute values.
- Specified by:
createDBObject
in class RealVectorLabelParser<DoubleVector>
- Parameters:
attributes
- the attributes of the vector to create.
- Returns:
- a RalVector of type V containing the given attribute values
- See Also:
RealVectorLabelParser.createDBObject(java.util.List)
descriptionLineType
protected String descriptionLineType()
- Specified by:
descriptionLineType
in class RealVectorLabelParser<DoubleVector>