D
- Distance result type.public class DBIDDistanceQuery<D extends Distance<D>> extends AbstractDatabaseDistanceQuery<DBID,D>
Modifier and Type | Field and Description |
---|---|
protected DBIDDistanceFunction<D> |
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<D> distanceFunction)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
D |
distance(DBIDRef id1,
DBIDRef id2)
Returns the distance between the two objects specified by their object ids.
|
DBIDDistanceFunction<D> |
getDistanceFunction()
Get the inner distance function.
|
distance, distance, distance
getDistanceFactory, infiniteDistance, nullDistance, undefinedDistance
getRelation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRelation
protected final DBIDDistanceFunction<D extends Distance<D>> distanceFunction
public DBIDDistanceQuery(Relation<DBID> relation, DBIDDistanceFunction<D> distanceFunction)
relation
- Database to use.distanceFunction
- Our distance functionpublic D distance(DBIDRef id1, DBIDRef id2)
AbstractDistanceQuery
public DBIDDistanceFunction<D> getDistanceFunction()
DistanceQuery