class ProjectedIndex.ProjectedRKNNQuery extends java.lang.Object implements RKNNQuery<O>
Modifier and Type | Field and Description |
---|---|
(package private) DistanceQuery<O> |
distq
Distance query for refinement.
|
(package private) RKNNQuery<I> |
inner
Inner RkNN query.
|
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
Constructor and Description |
---|
ProjectedRKNNQuery(DistanceQuery<O> distanceQuery,
RKNNQuery<I> inner)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<? extends DoubleDBIDList> |
getRKNNForBulkDBIDs(ArrayDBIDs ids,
int k)
Bulk query method for reverse k nearest neighbors for ids.
|
DoubleDBIDList |
getRKNNForDBID(DBIDRef id,
int k)
Get the reverse k nearest neighbors for a particular id.
|
DoubleDBIDList |
getRKNNForObject(O obj,
int k)
Get the reverse k nearest neighbors for a particular object.
|
DistanceQuery<O> distq
public ProjectedRKNNQuery(DistanceQuery<O> distanceQuery, RKNNQuery<I> inner)
inner
- Inner RkNN query.public DoubleDBIDList getRKNNForDBID(DBIDRef id, int k)
RKNNQuery
getRKNNForDBID
in interface RKNNQuery<O>
id
- query object IDk
- number of neighbors requestedpublic DoubleDBIDList getRKNNForObject(O obj, int k)
RKNNQuery
getRKNNForObject
in interface RKNNQuery<O>
obj
- query object instancek
- number of neighbors requestedpublic java.util.List<? extends DoubleDBIDList> getRKNNForBulkDBIDs(ArrayDBIDs ids, int k)
RKNNQuery
getRKNNForBulkDBIDs
in interface RKNNQuery<O>
ids
- query object IDsk
- number of neighbors requestedCopyright © 2019 ELKI Development Team. License information.