Package elki.index.invertedlist
Class InMemoryInvertedIndex.CosineRangeQuery
- java.lang.Object
-
- elki.index.invertedlist.InMemoryInvertedIndex.CosineRangeQuery
-
- All Implemented Interfaces:
RangeSearcher<V>
- Enclosing class:
- InMemoryInvertedIndex<V extends NumberVector>
protected class InMemoryInvertedIndex.CosineRangeQuery extends java.lang.Object implements RangeSearcher<V>
kNN query object, for cosine distance.- Author:
- Erich Schubert
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CosineRangeQuery()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModifiableDoubleDBIDList
getRange(V obj, double range, ModifiableDoubleDBIDList result)
Get the neighbors for a particular id in a given query range.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface elki.database.query.range.RangeSearcher
getRange
-
-
-
-
Method Detail
-
getRange
public ModifiableDoubleDBIDList getRange(V obj, double range, ModifiableDoubleDBIDList result)
Description copied from interface:RangeSearcher
Get the neighbors for a particular id in a given query range.- Specified by:
getRange
in interfaceRangeSearcher<V extends NumberVector>
- Parameters:
obj
- query object IDrange
- Query rangeresult
- Output data structure- Returns:
- neighbors
-
-