protected class InMemoryInvertedIndex.ArcCosineKNNQuery extends AbstractDistanceKNNQuery<V>
distanceQuery, relation
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
Constructor and Description |
---|
InMemoryInvertedIndex.ArcCosineKNNQuery(DistanceQuery<V> distanceQuery)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
KNNList |
getKNNForObject(V obj,
int k)
Get the k nearest neighbors for a particular id.
|
getKNNForBulkDBIDs, getKNNForDBID
public InMemoryInvertedIndex.ArcCosineKNNQuery(DistanceQuery<V> distanceQuery)
distanceQuery
- Distance querypublic KNNList getKNNForObject(V obj, int k)
KNNQuery
getKNNForObject
in interface KNNQuery<V extends NumberVector>
getKNNForObject
in class AbstractDistanceKNNQuery<V extends NumberVector>
obj
- Query objectk
- Number of neighbors requestedCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.