
private class PrecomputedDistanceMatrix.PrecomputedDistanceQuery extends Object implements DistanceQuery<O>
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE| Modifier | Constructor and Description |
|---|---|
private |
PrecomputedDistanceMatrix.PrecomputedDistanceQuery() |
| 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.
|
private PrecomputedDistanceMatrix.PrecomputedDistanceQuery()
public double distance(DBIDRef id1, DBIDRef id2)
DistanceQuerydistance in interface DistanceQuery<O>id1 - first object idid2 - second object idpublic double distance(O o1, DBIDRef id2)
DistanceQuerydistance in interface DistanceQuery<O>o1 - first objectid2 - second object idpublic double distance(DBIDRef id1, O o2)
DistanceQuerydistance in interface DistanceQuery<O>id1 - first object ido2 - second objectpublic double distance(O o1, O o2)
DistanceQuerydistance in interface DistanceQuery<O>o1 - first objecto2 - second objectpublic DistanceFunction<? super O> getDistanceFunction()
DistanceQuerygetDistanceFunction in interface DistanceQuery<O>public 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.