Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.parser
Class DoubleVectorLabelParser

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.logging.AbstractLoggable
      extended by de.lmu.ifi.dbs.elki.parser.AbstractParser<V>
          extended by de.lmu.ifi.dbs.elki.parser.NumberVectorLabelParser<DoubleVector>
              extended by de.lmu.ifi.dbs.elki.parser.DoubleVectorLabelParser
All Implemented Interfaces:
LinebasedParser<DoubleVector>, Parser<DoubleVector>, Parameterizable
Direct Known Subclasses:
DoubleVectorLabelTransposingParser

public class DoubleVectorLabelParser
extends NumberVectorLabelParser<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

Field Summary
 
Fields inherited from class de.lmu.ifi.dbs.elki.parser.NumberVectorLabelParser
labelIndices
 
Fields inherited from class de.lmu.ifi.dbs.elki.parser.AbstractParser
ATTRIBUTE_CONCATENATION, COMMENT, WHITESPACE_PATTERN
 
Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable
debug, logger
 
Constructor Summary
DoubleVectorLabelParser(Parameterization config)
          Constructor, adhering to Parameterizable
 
Method Summary
 DoubleVector createDBObject(List<Double> attributes)
          Creates a DoubleVector out of the given attribute values.
 
Methods inherited from class de.lmu.ifi.dbs.elki.parser.NumberVectorLabelParser
parse, parseLine
 
Methods inherited from class de.lmu.ifi.dbs.elki.parser.AbstractParser
toString
 
Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable
debugFine, debugFiner, debugFinest, exception, progress, verbose, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DoubleVectorLabelParser

public DoubleVectorLabelParser(Parameterization config)
Constructor, adhering to Parameterizable

Parameters:
config - Parameterization
Method Detail

createDBObject

public DoubleVector createDBObject(List<Double> attributes)
Creates a DoubleVector out of the given attribute values.

Specified by:
createDBObject in class NumberVectorLabelParser<DoubleVector>
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)

Release 0.3 (2010-03-31_1612)