O
- Database object typepublic class LinearScanRKNNQuery<O> extends AbstractRKNNQuery<O> implements LinearScanQuery
Modifier and Type | Field and Description |
---|---|
protected KNNQuery<O> |
knnQuery
KNN query we use.
|
distanceQuery, relation
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
Constructor and Description |
---|
LinearScanRKNNQuery(DistanceQuery<O> distanceQuery,
KNNQuery<O> knnQuery,
java.lang.Integer maxk)
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.
|
public LinearScanRKNNQuery(DistanceQuery<O> distanceQuery, KNNQuery<O> knnQuery, java.lang.Integer maxk)
distanceQuery
- Distance function to useknnQuery
- kNN query to use.maxk
- k to usepublic DoubleDBIDList getRKNNForObject(O obj, int k)
RKNNQuery
getRKNNForObject
in interface RKNNQuery<O>
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
getRKNNForBulkDBIDs
in interface RKNNQuery<O>
ids
- query object IDsk
- number of neighbors requestedCopyright © 2019 ELKI Development Team. License information.