Class CoverTree.CoverTreeKNNSearcher
- java.lang.Object
-
- elki.index.tree.metrical.covertree.CoverTree.CoverTreeKNNSearcher
-
- Direct Known Subclasses:
CoverTree.CoverTreeKNNDBIDSearcher
,CoverTree.CoverTreeKNNObjectSearcher
public abstract class CoverTree.CoverTreeKNNSearcher extends java.lang.Object
KNN Query class.- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description private DoubleObjectMinHeap<CoverTree.Node>
pq
Priority queue of candidates.private DBIDVar
tmp
Temporary storage.
-
Constructor Summary
Constructors Constructor Description CoverTreeKNNSearcher()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected KNNList
doSearch(int k)
Do the main searchprotected abstract double
queryDistance(DBIDRef it)
Compute distance to query object.
-
-
-
Field Detail
-
pq
private DoubleObjectMinHeap<CoverTree.Node> pq
Priority queue of candidates.
-
tmp
private DBIDVar tmp
Temporary storage.
-
-