Package elki.index.invertedlist
Class InMemoryInvertedIndex.CosineKNNQuery
- java.lang.Object
-
- elki.index.invertedlist.InMemoryInvertedIndex.CosineKNNQuery
-
- All Implemented Interfaces:
KNNSearcher<V>
- Enclosing class:
- InMemoryInvertedIndex<V extends NumberVector>
protected class InMemoryInvertedIndex.CosineKNNQuery extends java.lang.Object implements KNNSearcher<V>
kNN query object, for cosine distance.- Author:
- Erich Schubert
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CosineKNNQuery()
-
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
-
-