de.lmu.ifi.dbs.elki.distance.distancefunction
Interface SpatialPrimitiveDoubleDistanceFunction<V extends SpatialComparable>
- Type Parameters:
V
- Vector type
- All Superinterfaces:
- DistanceFunction<V,DoubleDistance>, InspectionUtilFrequentlyScanned, Parameterizable, PrimitiveDistanceFunction<V,DoubleDistance>, PrimitiveDoubleDistanceFunction<V>, SpatialPrimitiveDistanceFunction<V,DoubleDistance>
- All Known Implementing Classes:
- DimensionSelectingDistanceFunction, DimensionsSelectingEuclideanDistanceFunction, EuclideanDistanceFunction, HistogramIntersectionDistanceFunction, ManhattanDistanceFunction, MaximumDistanceFunction, MinimumDistanceFunction, SquaredEuclideanDistanceFunction
public interface SpatialPrimitiveDoubleDistanceFunction<V extends SpatialComparable>
- extends SpatialPrimitiveDistanceFunction<V,DoubleDistance>, PrimitiveDoubleDistanceFunction<V>
Interface combining spatial primitive distance functions with primitive
number distance functions. This allows for optimization in the most common
types, while not sacrificing generality to support the others.
In essence, you should use this interface only in specialized optimized
codepaths.
doubleMinDist
double doubleMinDist(SpatialComparable mbr1,
SpatialComparable mbr2)
- Computes the distance between the two given MBRs according to this
distance function.
- Parameters:
mbr1
- the first MBR objectmbr2
- the second MBR object
- Returns:
- the distance between the two given MBRs according to this
distance function
doubleCenterDistance
double doubleCenterDistance(SpatialComparable mbr1,
SpatialComparable mbr2)
- Computes the distance between the centroids of the two given MBRs
according to this distance function.
- Parameters:
mbr1
- the first MBR objectmbr2
- the second MBR object
- Returns:
- the distance between the centroids of the two given MBRs
according to this distance function