public class MkTreeRKNNQuery<O> extends AbstractRKNNQuery<O>
Modifier and Type | Field and Description |
---|---|
protected AbstractMkTree<O,?,?,?> |
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,?,?,?> index,
DistanceQuery<O> distanceQuery)
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.
|
protected final AbstractMkTree<O,?,?,?> index
public MkTreeRKNNQuery(AbstractMkTree<O,?,?,?> index, DistanceQuery<O> distanceQuery)
index
- Index to usedistanceQuery
- Distance query usedpublic DoubleDBIDList getRKNNForObject(O obj, int k)
RKNNQuery
obj
- query object instancek
- number of neighbors requestedpublic DoubleDBIDList getRKNNForDBID(DBIDRef id, int k)
RKNNQuery
getRKNNForDBID
in interface RKNNQuery<O>
getRKNNForDBID
in class AbstractRKNNQuery<O>
id
- query object IDk
- number of neighbors requestedpublic java.util.List<? extends DoubleDBIDList> getRKNNForBulkDBIDs(ArrayDBIDs ids, int k)
RKNNQuery
ids
- query object IDsk
- number of neighbors requestedCopyright © 2019 ELKI Development Team. License information.