de.lmu.ifi.dbs.elki.parser
Class DistanceParsingResult<O extends DatabaseObject,D extends Distance<D>>
java.lang.Object
de.lmu.ifi.dbs.elki.parser.ParsingResult<O>
de.lmu.ifi.dbs.elki.parser.DistanceParsingResult<O,D>
- Type Parameters:
O
- object typeD
- distance type
public class DistanceParsingResult<O extends DatabaseObject,D extends Distance<D>>
- extends ParsingResult<O>
Provides a list of database objects and labels associated with these objects
and a cache of precomputed distances between the database objects.
- Author:
- Elke Achtert
distanceCache
private final Map<Pair<Integer,Integer>,D extends Distance<D>> distanceCache
- The cache of precomputed distances between the database objects.
DistanceParsingResult
public DistanceParsingResult(List<Pair<O,List<String>>> objectAndLabelList,
Map<Pair<Integer,Integer>,D> distanceCache)
- Provides a list of database objects, a list of label objects associated
with these objects and cached distances between these objects.
- Parameters:
objectAndLabelList
- the list of database objects and labels associated with these
objectsdistanceCache
- the cache of precomputed distances between the database
objects
getDistanceCache
public Map<Pair<Integer,Integer>,D> getDistanceCache()
- Returns the cache of precomputed distances between the database objects.
- Returns:
- the cache of precomputed distances between the database objects