public abstract class AbstractDistanceQuery<O,D extends Distance<D>> extends AbstractDataBasedQuery<O> implements DistanceQuery<O,D>
relation
HINT_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.
|
getRelation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDistanceFunction, getRelation
public 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()
DistanceQuery
getDistanceFactory
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>>