Package elki.index.lsh
Class InMemoryLSHIndex.Instance.LSHKNNQuery
- java.lang.Object
-
- elki.index.AbstractRefiningIndex.AbstractRefiningQuery
-
- elki.index.lsh.InMemoryLSHIndex.Instance.LSHKNNQuery
-
- All Implemented Interfaces:
KNNSearcher<V>
- Enclosing class:
- InMemoryLSHIndex.Instance
protected class InMemoryLSHIndex.Instance.LSHKNNQuery extends AbstractRefiningIndex.AbstractRefiningQuery implements KNNSearcher<V>
Class for handling kNN queries against the LSH index.- Author:
- Erich Schubert
-
-
Field Summary
-
Fields inherited from class elki.index.AbstractRefiningIndex.AbstractRefiningQuery
distanceQuery
-
-
Constructor Summary
Constructors Constructor Description LSHKNNQuery(DistanceQuery<V> distanceQuery)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KNNList
getKNN(V obj, int k)
Get the k nearest neighbors for a particular object.-
Methods inherited from class elki.index.AbstractRefiningIndex.AbstractRefiningQuery
incRefinements, refine
-
-
-
-
Constructor Detail
-
LSHKNNQuery
public LSHKNNQuery(DistanceQuery<V> distanceQuery)
Constructor.- Parameters:
distanceQuery
-
-
-
Method Detail
-
getKNN
public KNNList getKNN(V obj, int k)
Description copied from interface:KNNSearcher
Get the k nearest neighbors for a particular object.- Specified by:
getKNN
in interfaceKNNSearcher<V>
- Parameters:
obj
- query objectk
- Number of neighbors requested- Returns:
- neighbors
-
-