|
||||||||||
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<DoubleVector> de.lmu.ifi.dbs.elki.datasource.parser.DoubleVectorLabelParser
public class DoubleVectorLabelParser
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.
Nested Class Summary | |
---|---|
static class |
DoubleVectorLabelParser.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 | |
---|---|
DoubleVectorLabelParser()
Constructor with default values. |
|
DoubleVectorLabelParser(Pattern colSep,
char quoteChar,
BitSet labelIndices)
Constructor. |
Method Summary | |
---|---|
DoubleVector |
createDBObject(List<Double> attributes)
Creates a DoubleVector out of the given attribute values. |
protected Logging |
getLogger()
Get the logger for this class. |
protected VectorFieldTypeInformation<DoubleVector> |
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 DoubleVectorLabelParser(Pattern colSep, char quoteChar, BitSet labelIndices)
colSep
- quoteChar
- labelIndices
- public DoubleVectorLabelParser()
Method Detail |
---|
public DoubleVector createDBObject(List<Double> attributes)
createDBObject
in class NumberVectorLabelParser<DoubleVector>
attributes
- the attributes of the vector to create.
NumberVectorLabelParser.createDBObject(java.util.List)
protected VectorFieldTypeInformation<DoubleVector> getTypeInformation(int dimensionality)
NumberVectorLabelParser
getTypeInformation
in class NumberVectorLabelParser<DoubleVector>
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 |