de.lmu.ifi.dbs.elki.distance.distancefunction
Interface DBIDDistanceFunction<D extends Distance<?>>

Type Parameters:
D - Distance type
All Superinterfaces:
DistanceFunction<DBID,D>, InspectionUtilFrequentlyScanned, Parameterizable
All Known Implementing Classes:
AbstractDBIDDistanceFunction, DiskCacheBasedDoubleDistanceFunction, DiskCacheBasedFloatDistanceFunction, FileBasedDoubleDistanceFunction, FileBasedFloatDistanceFunction, ProxyDistanceFunction, RandomStableDistanceFunction

public interface DBIDDistanceFunction<D extends Distance<?>>
extends DistanceFunction<DBID,D>

Distance functions valid in a database context only (i.e. for DBIDs) For any "distance" that cannot be computed for arbitrary objects, only those that exist in the database and referenced by their ID. Example: external precomputed distances


Method Summary
 D distance(DBID id1, DBID id2)
          Returns the distance between the two objects specified by their object ids.
 
Methods inherited from interface de.lmu.ifi.dbs.elki.distance.distancefunction.DistanceFunction
getDistanceFactory, getInputTypeRestriction, instantiate, isMetric, isSymmetric
 

Method Detail

distance

D distance(DBID id1,
           DBID id2)
Returns the distance between the two objects specified by their object ids.

Parameters:
id1 - first object id
id2 - second object id
Returns:
the distance between the two objects specified by their object ids

Release 0.4.0 (2011-09-20_1324)