Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.parser
Class DistanceParsingResult<O extends DatabaseObject,D extends Distance<D>>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.parser.ParsingResult<O>
      extended by de.lmu.ifi.dbs.elki.parser.DistanceParsingResult<O,D>
Type Parameters:
O - object type
D - 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

Field Summary
private  Map<Pair<Integer,Integer>,D> distanceCache
          The cache of precomputed distances between the database objects.
 
Constructor Summary
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.
 
Method Summary
 Map<Pair<Integer,Integer>,D> getDistanceCache()
          Returns the cache of precomputed distances between the database objects.
 
Methods inherited from class de.lmu.ifi.dbs.elki.parser.ParsingResult
getObjectAndLabelList, size, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

distanceCache

private final Map<Pair<Integer,Integer>,D extends Distance<D>> distanceCache
The cache of precomputed distances between the database objects.

Constructor Detail

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 objects
distanceCache - the cache of precomputed distances between the database objects
Method Detail

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

Release 0.3 (2010-03-31_1612)