|
||||||||||
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.parser.AbstractParser de.lmu.ifi.dbs.elki.datasource.parser.NumberVectorLabelParser<FloatVector> de.lmu.ifi.dbs.elki.datasource.parser.FloatVectorLabelParser
public class FloatVectorLabelParser
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.
Nested Class Summary | |
---|---|
static class |
FloatVectorLabelParser.Parameterizer
Parameterization class. |
Field Summary | |
---|---|
private static Logging |
logger
Class logger |
Fields inherited from class de.lmu.ifi.dbs.elki.datasource.parser.NumberVectorLabelParser |
---|
LABEL_INDICES_ID, labelIndices |
Fields inherited from class de.lmu.ifi.dbs.elki.datasource.parser.AbstractParser |
---|
ATTRIBUTE_CONCATENATION, COLUMN_SEPARATOR_ID, COMMENT, NUMBER_PATTERN, QUOTE_CHAR, QUOTE_ID, quoteChar, WHITESPACE_PATTERN |
Constructor Summary | |
---|---|
FloatVectorLabelParser(Pattern colSep,
char quoteChar,
BitSet labelIndices)
Constructor. |
Method Summary | |
---|---|
FloatVector |
createDBObject(List<Double> attributes)
Creates a FloatVector out of the given attribute values. |
protected Logging |
getLogger()
Get the logger for this class. |
protected VectorFieldTypeInformation<FloatVector> |
getTypeInformation(int dimensionality)
Get a prototype object for the given dimensionality. |
Methods inherited from class de.lmu.ifi.dbs.elki.datasource.parser.NumberVectorLabelParser |
---|
parse, parseLine, parseLineInternal |
Methods inherited from class de.lmu.ifi.dbs.elki.datasource.parser.AbstractParser |
---|
tokenize, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final Logging logger
Constructor Detail |
---|
public FloatVectorLabelParser(Pattern colSep, char quoteChar, BitSet labelIndices)
colSep
- quoteChar
- labelIndices
- Method Detail |
---|
public FloatVector createDBObject(List<Double> attributes)
createDBObject
in class NumberVectorLabelParser<FloatVector>
attributes
- the attributes of the vector to create.
NumberVectorLabelParser.createDBObject(java.util.List)
protected VectorFieldTypeInformation<FloatVector> getTypeInformation(int dimensionality)
NumberVectorLabelParser
getTypeInformation
in class NumberVectorLabelParser<FloatVector>
dimensionality
- Dimensionality
protected Logging getLogger()
AbstractParser
getLogger
in class AbstractParser
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |