V
- Vector typepublic interface SpatialPrimitiveDistanceFunction<V extends SpatialComparable> extends PrimitiveDistanceFunction<V>
Modifier and Type | Method and Description |
---|---|
default <T extends V> |
instantiate(Relation<T> relation)
Instantiate with a database to get the actual distance query.
|
double |
minDist(SpatialComparable mbr1,
SpatialComparable mbr2)
Computes the distance between the two given MBRs according to this distance
function.
|
distance, getInputTypeRestriction
isMetric, isSquared, isSymmetric
double minDist(SpatialComparable mbr1, SpatialComparable mbr2)
mbr1
- the first MBR objectmbr2
- the second MBR objectdefault <T extends V> SpatialPrimitiveDistanceQuery<T> instantiate(Relation<T> relation)
DistanceFunction
instantiate
in interface DistanceFunction<V extends SpatialComparable>
instantiate
in interface PrimitiveDistanceFunction<V extends SpatialComparable>
relation
- The representation to useCopyright © 2019 ELKI Development Team. License information.