public interface DistanceQuery<O,D extends Distance<?>> extends DatabaseQuery
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
Modifier and Type | Method and Description |
---|---|
D |
distance(DBIDRef id1,
DBIDRef id2)
Returns the distance between the two objects specified by their object ids.
|
D |
distance(DBIDRef id1,
O o2)
Returns the distance between the two objects specified by their object ids.
|
D |
distance(O o1,
DBIDRef id2)
Returns the distance between the two objects specified by their object ids.
|
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.
|
DistanceFunction<? super O,D> |
getDistanceFunction()
Get the inner distance function.
|
Relation<? extends O> |
getRelation()
Access the underlying data query.
|
D |
infiniteDistance()
Provides an infinite distance.
|
D |
nullDistance()
Provides a null distance.
|
D |
undefinedDistance()
Provides an undefined distance.
|
D distance(DBIDRef id1, DBIDRef id2)
id1
- first object idid2
- second object idD distance(O o1, DBIDRef id2)
o1
- first objectid2
- second object idD distance(DBIDRef id1, O o2)
id1
- first object ido2
- second objectD distance(O o1, O o2)
o1
- first objecto2
- second objectD getDistanceFactory()
DistanceFunction<? super O,D> getDistanceFunction()
D infiniteDistance()
D nullDistance()
D undefinedDistance()