@Reference(authors="G. R. Hjaltason, H. Samet", title="Ranking in spatial databases", booktitle="Advances in Spatial Databases - 4th Symposium, SSD\'95", url="http://dx.doi.org/10.1007/3-540-60159-7_6") public class EuclideanRStarTreeKNNQuery<O extends NumberVector> extends RStarTreeKNNQuery<O>
G. R. Hjaltason, H. Samet
Ranking in spatial databases
In: 4th Symposium on Advances in Spatial Databases, SSD'95
RStarTreeKNNQuery.DoubleDistanceEntry
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,
ComparableMinHeap<DoubleDistanceSearchCandidate> pq,
double maxDist,
int nodeID) |
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, ComparableMinHeap<DoubleDistanceSearchCandidate> pq, double maxDist, int nodeID)
public 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 © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.