public class MinKDistance.Instance<T extends O> extends AbstractDatabaseDistanceQuery<T,D>
Modifier and Type | Field and Description |
---|---|
private int |
k
Value for k
|
private KNNQuery<T,D> |
knnQuery
KNN query instance
|
relation
HINT_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(DBID id1,
DBID 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, distance
getDistanceFactory, infiniteDistance, nullDistance, undefinedDistance
getRelation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRelation
public MinKDistance.Instance(Relation<T> relation, int k, DistanceFunction<? super O,D> parentDistance)
relation
- Databasek
- Value of kpublic D distance(DBID id1, DBID id2)
AbstractDistanceQuery
distance
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