Class MkTreeRKNNQuery<O>
- java.lang.Object
-
- elki.index.tree.metrical.mtreevariants.query.MkTreeRKNNQuery<O>
-
- All Implemented Interfaces:
RKNNSearcher<DBIDRef>
public class MkTreeRKNNQuery<O> extends java.lang.Object implements RKNNSearcher<DBIDRef>
Instance of a rKNN query for a particular spatial index.- Since:
- 0.4.0
- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description protected DistanceQuery<O>
distanceQuery
Distance queryprotected AbstractMkTree<O,?,?,?>
index
The index to use
-
Constructor Summary
Constructors Constructor Description MkTreeRKNNQuery(AbstractMkTree<O,?,?,?> index, DistanceQuery<O> distanceQuery)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DoubleDBIDList
getRKNN(DBIDRef id, int k)
Get the reverse k nearest neighbors for a particular object.
-
-
-
Field Detail
-
distanceQuery
protected DistanceQuery<O> distanceQuery
Distance query
-
index
protected final AbstractMkTree<O,?,?,?> index
The index to use
-
-
Constructor Detail
-
MkTreeRKNNQuery
public MkTreeRKNNQuery(AbstractMkTree<O,?,?,?> index, DistanceQuery<O> distanceQuery)
Constructor.- Parameters:
index
- Index to usedistanceQuery
- Distance query used
-
-
Method Detail
-
getRKNN
public DoubleDBIDList getRKNN(DBIDRef id, int k)
Description copied from interface:RKNNSearcher
Get the reverse k nearest neighbors for a particular object.- Specified by:
getRKNN
in interfaceRKNNSearcher<O>
- Parameters:
id
- query objectk
- number of neighbors requested- Returns:
- reverse k nearest neighbors
-
-