Package elki.index.invertedlist
Class InMemoryInvertedIndex.ArcCosineKNNQuery
- java.lang.Object
-
- elki.index.invertedlist.InMemoryInvertedIndex.ArcCosineKNNQuery
-
- All Implemented Interfaces:
KNNSearcher<V>
- Enclosing class:
- InMemoryInvertedIndex<V extends NumberVector>
protected class InMemoryInvertedIndex.ArcCosineKNNQuery extends java.lang.Object implements KNNSearcher<V>
kNN query object, for arc cosine distance.- Author:
- Erich Schubert
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedArcCosineKNNQuery()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KNNListgetKNN(V obj, int k)Get the k nearest neighbors for a particular object.
-
-
-
Method Detail
-
getKNN
public KNNList getKNN(V obj, int k)
Description copied from interface:KNNSearcherGet the k nearest neighbors for a particular object.- Specified by:
getKNNin interfaceKNNSearcher<V extends NumberVector>- Parameters:
obj- query objectk- Number of neighbors requested- Returns:
- neighbors
-
-