V
- Vector typeD
- Distance typepublic interface SpatialPrimitiveDistanceFunction<V extends SpatialComparable,D extends Distance<D>> extends PrimitiveDistanceFunction<V,D>
Modifier and Type | Method and Description |
---|---|
D |
centerDistance(SpatialComparable mbr1,
SpatialComparable mbr2)
Computes the distance between the centroids of the two given MBRs
according to this distance function.
|
<T extends V> |
instantiate(Relation<T> relation)
Instantiate with a database to get the actual distance query.
|
D |
minDist(SpatialComparable mbr1,
SpatialComparable mbr2)
Computes the distance between the two given MBRs according to this
distance function.
|
distance, getInputTypeRestriction
getDistanceFactory, isMetric, isSymmetric
D minDist(SpatialComparable mbr1, SpatialComparable mbr2)
mbr1
- the first MBR objectmbr2
- the second MBR objectD centerDistance(SpatialComparable mbr1, SpatialComparable mbr2)
mbr1
- the first MBR objectmbr2
- the second MBR object<T extends V> SpatialDistanceQuery<T,D> instantiate(Relation<T> relation)
DistanceFunction
instantiate
in interface DistanceFunction<V extends SpatialComparable,D extends Distance<D>>
relation
- The representation to use