Package elki.distance
Interface SpatialPrimitiveDistance<V extends SpatialComparable>
-
- Type Parameters:
V
- Vector type
- All Superinterfaces:
Distance<V>
,PrimitiveDistance<V>
- All Known Implementing Classes:
ArcCosineDistance
,ArcCosineUnitlengthDistance
,BrayCurtisDistance
,CanberraDistance
,ChiDistance
,ChiSquaredDistance
,ClarkDistance
,CosineDistance
,CosineUnitlengthDistance
,DimensionSelectingLatLngDistance
,EuclideanDistance
,FisherRaoDistance
,HellingerDistance
,HistogramIntersectionDistance
,HistogramMatchDistance
,JeffreyDivergenceDistance
,JensenShannonDivergenceDistance
,Kulczynski1Similarity
,LatLngDistance
,LngLatDistance
,LPIntegerNormDistance
,LPNormDistance
,ManhattanDistance
,MaximumDistance
,MinimumDistance
,OnedimensionalDistance
,SqrtCosineDistance
,SqrtCosineUnitlengthDistance
,SqrtJensenShannonDivergenceDistance
,SquaredEuclideanDistance
,SubspaceEuclideanDistance
,SubspaceLPNormDistance
,SubspaceManhattanDistance
,SubspaceMaximumDistance
,TriangularDiscriminationDistance
,TriangularDistance
,WeightedCanberraDistance
,WeightedEuclideanDistance
,WeightedLPNormDistance
,WeightedManhattanDistance
,WeightedMaximumDistance
,WeightedSquaredEuclideanDistance
public interface SpatialPrimitiveDistance<V extends SpatialComparable> extends PrimitiveDistance<V>
API for a spatial primitive distance function.- Since:
- 0.4.0
- Author:
- Erich Schubert
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default <T extends V>
SpatialPrimitiveDistanceQuery<T>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.-
Methods inherited from interface elki.distance.Distance
isMetric, isSquared, isSymmetric
-
Methods inherited from interface elki.distance.PrimitiveDistance
distance, getInputTypeRestriction
-
-
-
-
Method Detail
-
minDist
double minDist(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
-
instantiate
default <T extends V> SpatialPrimitiveDistanceQuery<T> instantiate(Relation<T> relation)
Description copied from interface:Distance
Instantiate with a database to get the actual distance query.- Specified by:
instantiate
in interfaceDistance<V extends SpatialComparable>
- Specified by:
instantiate
in interfacePrimitiveDistance<V extends SpatialComparable>
- Parameters:
relation
- The representation to use- Returns:
- Actual distance query.
-
-