public class DBIDRangeDistanceQuery extends DBIDDistanceQuery
Modifier and Type | Field and Description |
---|---|
protected DBIDRangeDistanceFunction |
distanceFunction
The distance function we use.
|
protected DBIDRange |
range
The DBID range we are accessing.
|
relation
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
Constructor and Description |
---|
DBIDRangeDistanceQuery(Relation<DBID> relation,
DBIDRangeDistanceFunction 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.
|
getRelation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
distance, distance, distance
protected final DBIDRangeDistanceFunction distanceFunction
protected final DBIDRange range
public DBIDRangeDistanceQuery(Relation<DBID> relation, DBIDRangeDistanceFunction distanceFunction)
relation
- Database to use.distanceFunction
- Our distance functionpublic double distance(DBIDRef id1, DBIDRef id2)
DistanceQuery
distance
in interface DistanceQuery<DBID>
distance
in class DBIDDistanceQuery
id1
- first object idid2
- second object idpublic DBIDDistanceFunction getDistanceFunction()
DistanceQuery
getDistanceFunction
in interface DistanceQuery<DBID>
getDistanceFunction
in class DBIDDistanceQuery
Copyright © 2019 ELKI Development Team. License information.