Package elki.index.projected
Class ProjectedIndex.ProjectedRKNNByDBID
- java.lang.Object
-
- elki.index.projected.ProjectedIndex.ProjectedRKNNByDBID
-
- All Implemented Interfaces:
RKNNSearcher<DBIDRef>
- Enclosing class:
- ProjectedIndex<O,I>
class ProjectedIndex.ProjectedRKNNByDBID extends java.lang.Object implements RKNNSearcher<DBIDRef>
Class to proxy RkNN queries.- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description (package private) DistanceQuery<O>
distq
Distance query for refinement.(package private) RKNNSearcher<I>
inner
Inner RkNN query.
-
Constructor Summary
Constructors Constructor Description ProjectedRKNNByDBID(DistanceQuery<O> distanceQuery, RKNNSearcher<I> inner)
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
-
inner
RKNNSearcher<I> inner
Inner RkNN query.
-
distq
DistanceQuery<O> distq
Distance query for refinement.
-
-
Constructor Detail
-
ProjectedRKNNByDBID
public ProjectedRKNNByDBID(DistanceQuery<O> distanceQuery, RKNNSearcher<I> inner)
Constructor.- Parameters:
inner
- Inner RkNN query.
-
-
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<DBIDRef>
- Parameters:
id
- query objectk
- number of neighbors requested- Returns:
- reverse k nearest neighbors
-
-