public class LatLngDistanceFunction extends AbstractSpatialDistanceFunction
EarthModel.distanceDeg(double, double, double, double)
).
This implementation allows index accelerated queries using R*-trees (by
providing a point-to-rectangle minimum distance), as published in:
Erich Schubert, Arthur Zimek and Hans-Peter Kriegel
Geodetic Distance Queries on R-Trees for Indexing Geographic Data
Advances in Spatial and Temporal Databases - 13th International Symposium,
SSTD 2013, Munich, Germany
Modifier and Type | Class and Description |
---|---|
static class |
LatLngDistanceFunction.Parameterizer
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
private EarthModel |
model
Earth model to use.
|
Constructor and Description |
---|
LatLngDistanceFunction(EarthModel model)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
distance(NumberVector o1,
NumberVector o2)
Computes the distance between two given DatabaseObjects according to this
distance function.
|
boolean |
equals(Object obj) |
SimpleTypeInformation<? super NumberVector> |
getInputTypeRestriction()
Get the input data type of the function.
|
int |
hashCode() |
double |
minDist(SpatialComparable mbr1,
SpatialComparable mbr2)
Computes the distance between the two given MBRs according to this distance
function.
|
instantiate
dimensionality, dimensionality, dimensionality, dimensionality
isMetric, isSymmetric
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
isMetric, isSymmetric
private EarthModel model
public LatLngDistanceFunction(EarthModel model)
public double distance(NumberVector o1, NumberVector o2)
PrimitiveDistanceFunction
distance
in interface NumberVectorDistanceFunction<NumberVector>
distance
in interface PrimitiveDistanceFunction<NumberVector>
distance
in class AbstractPrimitiveDistanceFunction<NumberVector>
o1
- first DatabaseObjecto2
- second DatabaseObject@Reference(authors="Erich Schubert, Arthur Zimek and Hans-Peter Kriegel", title="Geodetic Distance Queries on R-Trees for Indexing Geographic Data", booktitle="Advances in Spatial and Temporal Databases - 13th International Symposium, SSTD 2013, Munich, Germany") public double minDist(SpatialComparable mbr1, SpatialComparable mbr2)
SpatialPrimitiveDistanceFunction
mbr1
- the first MBR objectmbr2
- the second MBR objectpublic SimpleTypeInformation<? super NumberVector> getInputTypeRestriction()
DistanceFunction
getInputTypeRestriction
in interface DistanceFunction<NumberVector>
getInputTypeRestriction
in interface PrimitiveDistanceFunction<NumberVector>
getInputTypeRestriction
in class AbstractNumberVectorDistanceFunction
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.