de.lmu.ifi.dbs.elki.datasource.parser
Interface DistanceParser<D extends Distance<D>>
- Type Parameters:
D
- distance type
- All Known Implementing Classes:
- NumberDistanceParser
public interface DistanceParser<D extends Distance<D>>
A DistanceParser shall provide a DistanceParsingResult by parsing an InputStream.
parse
DistanceParsingResult<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.
- Parameters:
in
- the stream to parse objects from
- Returns:
- a list containing those objects parsed
from the input stream and their associated labels.