de.lmu.ifi.dbs.elki.parser
Class FloatVectorLabelParser
java.lang.Object
de.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.parser.AbstractParser<V>
de.lmu.ifi.dbs.elki.parser.NumberVectorLabelParser<FloatVector>
de.lmu.ifi.dbs.elki.parser.FloatVectorLabelParser
- All Implemented Interfaces:
- LinebasedParser<FloatVector>, Parser<FloatVector>, Parameterizable
public class FloatVectorLabelParser
- extends NumberVectorLabelParser<FloatVector>
Provides a parser for parsing one point per line, attributes separated by
whitespace.
Numerical values in a line will be parsed as double values but used in float precision only.
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
FloatVectorLabelParser
public FloatVectorLabelParser(Parameterization config)
- Constructor, adhering to
Parameterizable
- Parameters:
config
- Parameterization
createDBObject
public FloatVector createDBObject(List<Double> attributes)
- Creates a FloatVector out of the given attribute values.
- Specified by:
createDBObject
in class NumberVectorLabelParser<FloatVector>
- Parameters:
attributes
- the attributes of the vector to create.
- Returns:
- a RalVector of type V containing the given attribute values
- See Also:
NumberVectorLabelParser.createDBObject(java.util.List)