
public class MinKDistance.Instance<T extends O> extends AbstractDatabaseDistanceQuery<T,D>
| Modifier and Type | Field and Description | 
|---|---|
| private int | kValue for k | 
| private KNNQuery<T,D> | knnQueryKNN query instance | 
| private DistanceQuery<T,D> | parentDistanceQueryDistance query for parent distance. | 
relationHINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE| Constructor and Description | 
|---|
| MinKDistance.Instance(Relation<T> relation,
                     int k,
                     DistanceFunction<? super O,D> parentDistance)Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| D | distance(DBIDRef id1,
        DBIDRef id2)Returns the distance between the two objects specified by their object ids. | 
| DistanceFunction<? super T,D> | getDistanceFunction()Get the inner distance function. | 
distance, distance, distancegetDistanceFactory, infiniteDistance, nullDistance, undefinedDistancegetRelationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRelationpublic MinKDistance.Instance(Relation<T> relation, int k, DistanceFunction<? super O,D> parentDistance)
relation - Databasek - Value of kpublic D distance(DBIDRef id1, DBIDRef id2)
AbstractDistanceQuerydistance in interface DistanceQuery<T extends O,D extends Distance<D>>distance in class AbstractDistanceQuery<T extends O,D extends Distance<D>>id1 - first object idid2 - second object idpublic DistanceFunction<? super T,D> getDistanceFunction()
DistanceQuery