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. |
distance
D distance(DBID id1,
DBID id2)
- Returns the distance between the two objects specified by their object ids.
- Parameters:
id1 - first object idid2 - second object id
- Returns:
- the distance between the two objects specified by their object ids