public class DBIDDistanceQuery extends AbstractDatabaseDistanceQuery<DBID>
Modifier and Type | Field and Description |
---|---|
protected DBIDDistanceFunction |
distanceFunction
The distance function we use.
|
relation
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
Constructor and Description |
---|
DBIDDistanceQuery(Relation<DBID> relation,
DBIDDistanceFunction distanceFunction)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
distance(DBIDRef id1,
DBIDRef id2)
Returns the distance between the two objects specified by their object ids.
|
DBIDDistanceFunction |
getDistanceFunction()
Get the inner distance function.
|
distance, distance, distance
getRelation
protected final DBIDDistanceFunction distanceFunction
public DBIDDistanceQuery(Relation<DBID> relation, DBIDDistanceFunction distanceFunction)
relation
- Database to use.distanceFunction
- Our distance functionpublic double distance(DBIDRef id1, DBIDRef id2)
AbstractDistanceQuery
distance
in interface DistanceQuery<DBID>
distance
in class AbstractDistanceQuery<DBID>
id1
- first object idid2
- second object idpublic DBIDDistanceFunction getDistanceFunction()
DistanceQuery
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.