
public abstract class AbstractDistanceQuery<O,D extends Distance<D>> extends AbstractDataBasedQuery<O> implements DistanceQuery<O,D>
relationHINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE| Constructor and Description |
|---|
AbstractDistanceQuery(Relation<? extends O> relation)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
abstract D |
distance(DBIDRef id1,
DBIDRef id2)
Returns the distance between the two objects specified by their object ids.
|
abstract D |
distance(DBIDRef id1,
O o2)
Returns the distance between the two objects specified by their object ids.
|
abstract D |
distance(O o1,
DBIDRef id2)
Returns the distance between the two objects specified by their object ids.
|
abstract D |
distance(O o1,
O o2)
Returns the distance between the two objects specified by their object ids.
|
D |
getDistanceFactory()
Method to get the distance functions factory.
|
D |
infiniteDistance()
Provides an infinite distance.
|
D |
nullDistance()
Provides a null distance.
|
D |
undefinedDistance()
Provides an undefined distance.
|
getRelationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDistanceFunction, getRelationpublic abstract D distance(DBIDRef id1, DBIDRef id2)
public abstract D distance(O o1, DBIDRef id2)
public abstract D distance(DBIDRef id1, O o2)
public abstract D distance(O o1, O o2)
public D getDistanceFactory()
DistanceQuerygetDistanceFactory in interface DistanceQuery<O,D extends Distance<D>>public D infiniteDistance()
infiniteDistance in interface DistanceQuery<O,D extends Distance<D>>public D nullDistance()
nullDistance in interface DistanceQuery<O,D extends Distance<D>>public D undefinedDistance()
undefinedDistance in interface DistanceQuery<O,D extends Distance<D>>