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 protected
ArcCosineKNNQuery()
-
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.
-
-
-
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 extends NumberVector>
- Parameters:
obj
- query objectk
- Number of neighbors requested- Returns:
- neighbors
-
-