public class MkTreeRKNNQuery<O,D extends NumberDistance<D,?>> extends AbstractRKNNQuery<O,D>
Modifier and Type | Field and Description |
---|---|
protected AbstractMkTree<O,D,?,?,?> |
index
The index to use
|
distanceQuery
relation
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
Constructor and Description |
---|
MkTreeRKNNQuery(AbstractMkTree<O,D,?,?,?> index,
DistanceQuery<O,D> distanceQuery)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
List<? extends DistanceDBIDList<D>> |
getRKNNForBulkDBIDs(ArrayDBIDs ids,
int k)
Bulk query method for reverse k nearest neighbors for ids.
|
DistanceDBIDList<D> |
getRKNNForDBID(DBIDRef id,
int k)
Get the reverse k nearest neighbors for a particular id.
|
DistanceDBIDList<D> |
getRKNNForObject(O obj,
int k)
Get the reverse k nearest neighbors for a particular object.
|
getRelation
protected final AbstractMkTree<O,D extends NumberDistance<D,?>,?,?,?> index
public MkTreeRKNNQuery(AbstractMkTree<O,D,?,?,?> index, DistanceQuery<O,D> distanceQuery)
index
- Index to usedistanceQuery
- Distance query usedpublic DistanceDBIDList<D> getRKNNForObject(O obj, int k)
RKNNQuery
obj
- query object instancek
- number of neighbors requestedpublic DistanceDBIDList<D> getRKNNForDBID(DBIDRef id, int k)
RKNNQuery
getRKNNForDBID
in interface RKNNQuery<O,D extends NumberDistance<D,?>>
getRKNNForDBID
in class AbstractRKNNQuery<O,D extends NumberDistance<D,?>>
id
- query object IDk
- number of neighbors requestedpublic List<? extends DistanceDBIDList<D>> getRKNNForBulkDBIDs(ArrayDBIDs ids, int k)
RKNNQuery
ids
- query object IDsk
- number of neighbors requested