Package elki.database.query.distance
Interface SpatialDistanceQuery<V extends SpatialComparable>
-
- Type Parameters:
V- Vector type
- All Superinterfaces:
DistanceQuery<V>
- All Known Implementing Classes:
SpatialPrimitiveDistanceQuery,SpatialPrimitiveDistanceSimilarityQuery
public interface SpatialDistanceQuery<V extends SpatialComparable> extends DistanceQuery<V>
Query interface for spatial distance queries.- Since:
- 0.4.0
- Author:
- Erich Schubert
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SpatialPrimitiveDistance<? super V>getDistance()Get the inner distance function.doubleminDist(SpatialComparable mbr, DBIDRef id)Computes the minimum distance between the given MBR and the FeatureVector object according to this distance function.doubleminDist(SpatialComparable mbr, V v)Computes the minimum distance between the given MBR and the FeatureVector object according to this distance function.-
Methods inherited from interface elki.database.query.distance.DistanceQuery
distance, distance, distance, distance, getRelation
-
-
-
-
Method Detail
-
minDist
double minDist(SpatialComparable mbr, V v)
Computes the minimum distance between the given MBR and the FeatureVector object according to this distance function.- Parameters:
mbr- the MBR objectv- the FeatureVector object- Returns:
- the minimum distance between the given MBR and the FeatureVector object according to this distance function
-
minDist
double minDist(SpatialComparable mbr, DBIDRef id)
Computes the minimum distance between the given MBR and the FeatureVector object according to this distance function.- Parameters:
mbr- the MBR objectid- the query object id- Returns:
- the minimum distance between the given MBR and the FeatureVector object according to this distance function
-
getDistance
SpatialPrimitiveDistance<? super V> getDistance()
Get the inner distance function.- Specified by:
getDistancein interfaceDistanceQuery<V extends SpatialComparable>- Returns:
- Distance function
-
-