
O - Input data typepublic interface DistanceQuery<O> extends DatabaseQuery
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE| Modifier and Type | Method and Description |
|---|---|
double |
distance(DBIDRef id1,
DBIDRef id2)
Returns the distance between the two objects specified by their object ids.
|
double |
distance(DBIDRef id1,
O o2)
Returns the distance between the two objects specified by their object ids.
|
double |
distance(O o1,
DBIDRef id2)
Returns the distance between the two objects specified by their object ids.
|
double |
distance(O o1,
O o2)
Returns the distance between the two objects specified by their object ids.
|
DistanceFunction<? super O> |
getDistanceFunction()
Get the inner distance function.
|
Relation<? extends O> |
getRelation()
Access the underlying data query.
|
double distance(DBIDRef id1, DBIDRef id2)
id1 - first object idid2 - second object iddouble distance(O o1, DBIDRef id2)
o1 - first objectid2 - second object iddouble distance(DBIDRef id1, O o2)
id1 - first object ido2 - second objectdouble distance(O o1, O o2)
o1 - first objecto2 - second objectDistanceFunction<? super O> getDistanceFunction()
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.