Package elki.index.vafile
Class VAFile.VAFileKNNQuery
- java.lang.Object
-
- elki.index.AbstractRefiningIndex.AbstractRefiningQuery
-
- elki.index.vafile.VAFile.VAFileKNNQuery
-
- All Implemented Interfaces:
KNNSearcher<V>
- Enclosing class:
- VAFile<V extends NumberVector>
public class VAFile.VAFileKNNQuery extends AbstractRefiningIndex.AbstractRefiningQuery implements KNNSearcher<V>
KNN query for this index.- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description (package private) double
p
LP Norm p parameter.-
Fields inherited from class elki.index.AbstractRefiningIndex.AbstractRefiningQuery
distanceQuery
-
-
Constructor Summary
Constructors Constructor Description VAFileKNNQuery(DistanceQuery<V> distanceQuery, double p)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KNNList
getKNN(V query, int k)
Get the k nearest neighbors for a particular object.-
Methods inherited from class elki.index.AbstractRefiningIndex.AbstractRefiningQuery
incRefinements, refine
-
-
-
-
Constructor Detail
-
VAFileKNNQuery
public VAFileKNNQuery(DistanceQuery<V> distanceQuery, double p)
Constructor.- Parameters:
distanceQuery
- Distance query objectp
- LP norm p
-
-
Method Detail
-
getKNN
public KNNList getKNN(V query, int k)
Description copied from interface:KNNSearcher
Get the k nearest neighbors for a particular object.- Specified by:
getKNN
in interfaceKNNSearcher<V extends NumberVector>
- Parameters:
query
- query objectk
- Number of neighbors requested- Returns:
- neighbors
-
-