public class LngLatDistanceFunction extends AbstractSpatialDoubleDistanceFunction
Modifier and Type | Class and Description |
---|---|
static class |
LngLatDistanceFunction.Parameterizer
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
private EarthModel |
model
Earth model to use.
|
Constructor and Description |
---|
LngLatDistanceFunction(EarthModel model)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
doubleDistance(NumberVector<?> o1,
NumberVector<?> o2)
Computes the distance between two given Objects according to this distance
function.
|
double |
doubleMinDist(SpatialComparable mbr1,
SpatialComparable mbr2)
Computes the distance between the two given MBRs according to this
distance function.
|
boolean |
equals(Object obj) |
SimpleTypeInformation<? super NumberVector<?>> |
getInputTypeRestriction()
Get the input data type of the function.
|
int |
hashCode() |
String |
toString() |
instantiate, minDist
dimensionality, dimensionality, dimensionality, dimensionality, distance, getDistanceFactory
isMetric, isSymmetric
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
distance
getDistanceFactory, isMetric, isSymmetric
private EarthModel model
public LngLatDistanceFunction(EarthModel model)
public double doubleDistance(NumberVector<?> o1, NumberVector<?> o2)
PrimitiveDoubleDistanceFunction
o1
- first Objecto2
- second Object@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 doubleMinDist(SpatialComparable mbr1, SpatialComparable mbr2)
SpatialPrimitiveDoubleDistanceFunction
mbr1
- the first MBR objectmbr2
- the second MBR objectpublic SimpleTypeInformation<? super NumberVector<?>> getInputTypeRestriction()
DistanceFunction
getInputTypeRestriction
in interface DistanceFunction<NumberVector<?>,DoubleDistance>
getInputTypeRestriction
in interface PrimitiveDistanceFunction<NumberVector<?>,DoubleDistance>
getInputTypeRestriction
in class AbstractVectorDoubleDistanceFunction