Package elki.index.tree.metrical.vptree
Class GNAT.GNATKNNDBIDSearcher
- java.lang.Object
-
- elki.index.tree.metrical.vptree.GNAT.GNATKNNSearcher
-
- elki.index.tree.metrical.vptree.GNAT.GNATKNNDBIDSearcher
-
- All Implemented Interfaces:
KNNSearcher<DBIDRef>
public class GNAT.GNATKNNDBIDSearcher extends GNAT.GNATKNNSearcher implements KNNSearcher<DBIDRef>
kNN search for the VP-Tree.- Author:
- Robert Gehde, Erich Schubert
-
-
Constructor Summary
Constructors Constructor Description GNATKNNDBIDSearcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KNNList
getKNN(DBIDRef query, int k)
Get the k nearest neighbors for a particular object.protected double
queryDistance(DBIDRef p)
Query the distance to a query object.-
Methods inherited from class elki.index.tree.metrical.vptree.GNAT.GNATKNNSearcher
mvpKNNSearch
-
-
-
-
Field Detail
-
query
private DBIDRef query
Current query object
-
-
Method Detail
-
getKNN
public KNNList getKNN(DBIDRef query, int k)
Description copied from interface:KNNSearcher
Get the k nearest neighbors for a particular object.- Specified by:
getKNN
in interfaceKNNSearcher<DBIDRef>
- Parameters:
query
- query objectk
- Number of neighbors requested- Returns:
- neighbors
-
queryDistance
protected double queryDistance(DBIDRef p)
Description copied from class:GNAT.GNATKNNSearcher
Query the distance to a query object.- Specified by:
queryDistance
in classGNAT.GNATKNNSearcher
- Parameters:
p
- Target object- Returns:
- Distance
-
-