
public abstract class AbstractDistanceQuery<O> extends Object implements DistanceQuery<O>
| Modifier and Type | Field and Description |
|---|---|
protected Relation<? extends O> |
relation
The data to use for this query
|
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 double |
distance(DBIDRef id1,
DBIDRef id2)
Returns the distance between the two objects specified by their object ids.
|
abstract double |
distance(DBIDRef id1,
O o2)
Returns the distance between the two objects specified by their object ids.
|
abstract double |
distance(O o1,
DBIDRef id2)
Returns the distance between the two objects specified by their object ids.
|
abstract double |
distance(O o1,
O o2)
Returns the distance between the two objects specified by their object ids.
|
Relation<? extends O> |
getRelation()
Access the underlying data query.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDistanceFunctionpublic abstract double distance(DBIDRef id1, DBIDRef id2)
distance in interface DistanceQuery<O>id1 - first object idid2 - second object idpublic abstract double distance(O o1, DBIDRef id2)
distance in interface DistanceQuery<O>o1 - first objectid2 - second object idpublic abstract double distance(DBIDRef id1, O o2)
distance in interface DistanceQuery<O>id1 - first object ido2 - second objectpublic abstract double distance(O o1, O o2)
distance in interface DistanceQuery<O>o1 - first objecto2 - second objectpublic Relation<? extends O> getRelation()
DistanceQuerygetRelation in interface DistanceQuery<O>Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.