de.lmu.ifi.dbs.elki.parser
Interface DistanceParser<O extends DatabaseObject,D extends Distance<D>>
- Type Parameters:
O
- object typeD
- 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
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.