Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.parser
Interface DistanceParser<O extends DatabaseObject,D extends Distance<D>>

Type Parameters:
O - object type
D - distance type
All Superinterfaces:
Parameterizable, Parser<O>
All Known Implementing Classes:
NumberDistanceParser

public interface DistanceParser<O extends DatabaseObject,D extends Distance<D>>
extends Parser<O>

A DistanceParser shall provide a DistanceParsingResult by parsing an InputStream.

Author:
Arthur Zimek

Method Summary
 DistanceFunction<O,D> getDistanceFunction()
          Returns the distance function of this parser.
 DistanceParsingResult<O,D> parse(InputStream in)
          Returns a list of the objects parsed from the specified input stream and a list of the labels associated with the objects.
 
Methods inherited from interface de.lmu.ifi.dbs.elki.utilities.optionhandling.Parameterizable
checkGlobalParameterConstraints, collectOptions, getParameters, setParameters, shortDescription
 

Method Detail

getDistanceFunction

DistanceFunction<O,D> getDistanceFunction()
Returns the distance function of this parser.

Returns:
the distance function of this parser

parse

DistanceParsingResult<O,D> parse(InputStream in)
Returns a list of the objects parsed from the specified input stream and a list of the labels associated with the objects.

Specified by:
parse in interface Parser<O extends DatabaseObject>
Parameters:
in - the stream to parse objects from
Returns:
a list containing those objects parsed from the input stream and their associated labels.

Release 0.2 (2009-07-06_1820)