O
- Database object type.public abstract class AbstractDatabaseDistanceQuery<O> extends AbstractDistanceQuery<O>
relation
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
Constructor and Description |
---|
AbstractDatabaseDistanceQuery(Relation<? extends O> relation)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
distance, getRelation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDistanceFunction
public double distance(O o1, DBIDRef id2)
AbstractDistanceQuery
distance
in interface DistanceQuery<O>
distance
in class AbstractDistanceQuery<O>
o1
- first objectid2
- second object idpublic double distance(DBIDRef id1, O o2)
AbstractDistanceQuery
distance
in interface DistanceQuery<O>
distance
in class AbstractDistanceQuery<O>
id1
- first object ido2
- second objectpublic double distance(O o1, O o2)
AbstractDistanceQuery
distance
in interface DistanceQuery<O>
distance
in class AbstractDistanceQuery<O>
o1
- first objecto2
- second objectCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.