@Reference(authors="G. R. Hjaltason, H. Samet", title="Ranking in spatial databases", booktitle="4th Symp. Advances in Spatial Databases (SSD\'95)", url="https://doi.org/10.1007/3-540-60159-7_6", bibkey="DBLP:conf/ssd/HjaltasonS95") public class EuclideanRStarTreeKNNQuery<O extends NumberVector> extends RStarTreeKNNQuery<O>
Reference:
G. R. Hjaltason, H. Samet
Ranking in spatial databases
4th Symp. Advances in Spatial Databases (SSD'95)
Modifier and Type | Field and Description |
---|---|
private static SquaredEuclideanDistanceFunction |
SQUARED
Squared euclidean distance function.
|
distanceFunction, relation, tree
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
Constructor and Description |
---|
EuclideanRStarTreeKNNQuery(AbstractRStarTree<?,?,?> tree,
Relation<? extends O> relation)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private double |
expandNode(O object,
KNNHeap knnList,
DoubleIntegerMinHeap pq,
double maxDist,
int nodeID) |
java.util.List<KNNList> |
getKNNForBulkDBIDs(ArrayDBIDs ids,
int k)
Bulk query method
|
KNNList |
getKNNForObject(O obj,
int k)
Get the k nearest neighbors for a particular id.
|
batchNN, getKNNForDBID, getSortedEntries
private static final SquaredEuclideanDistanceFunction SQUARED
public EuclideanRStarTreeKNNQuery(AbstractRStarTree<?,?,?> tree, Relation<? extends O> relation)
tree
- Index to userelation
- Data relation to querypublic KNNList getKNNForObject(O obj, int k)
KNNQuery
getKNNForObject
in interface KNNQuery<O extends NumberVector>
getKNNForObject
in class RStarTreeKNNQuery<O extends NumberVector>
obj
- Query objectk
- Number of neighbors requestedprivate double expandNode(O object, KNNHeap knnList, DoubleIntegerMinHeap pq, double maxDist, int nodeID)
public java.util.List<KNNList> getKNNForBulkDBIDs(ArrayDBIDs ids, int k)
KNNQuery
getKNNForBulkDBIDs
in interface KNNQuery<O extends NumberVector>
getKNNForBulkDBIDs
in class RStarTreeKNNQuery<O extends NumberVector>
ids
- query object IDsk
- Number of neighbors requestedCopyright © 2019 ELKI Development Team. License information.