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.


Method Summary
 double doubleCenterDistance(SpatialComparable mbr1, SpatialComparable mbr2)
          Computes the distance between the centroids of the two given MBRs according to this distance function.
 double doubleMinDist(SpatialComparable mbr1, SpatialComparable mbr2)
          Computes the distance between the two given MBRs according to this distance function.
 
Methods inherited from interface de.lmu.ifi.dbs.elki.distance.distancefunction.SpatialPrimitiveDistanceFunction
centerDistance, instantiate, minDist
 
Methods inherited from interface de.lmu.ifi.dbs.elki.distance.distancefunction.PrimitiveDoubleDistanceFunction
doubleDistance
 
Methods inherited from interface de.lmu.ifi.dbs.elki.distance.distancefunction.PrimitiveDistanceFunction
distance, getInputTypeRestriction
 
Methods inherited from interface de.lmu.ifi.dbs.elki.distance.distancefunction.DistanceFunction
getDistanceFactory, isMetric, isSymmetric
 

Method Detail

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 object
mbr2 - 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 object
mbr2 - the second MBR object
Returns:
the distance between the centroids of the two given MBRs according to this distance function

Release 0.4.0 (2011-09-20_1324)