de.lmu.ifi.dbs.elki.database.query.distance
Interface SpatialDistanceQuery<V extends SpatialComparable,D extends Distance<D>>

Type Parameters:
V - Vector type
D - Distance type
All Superinterfaces:
DatabaseQuery, DistanceQuery<V,D>
All Known Implementing Classes:
SpatialPrimitiveDistanceQuery

public interface SpatialDistanceQuery<V extends SpatialComparable,D extends Distance<D>>
extends DistanceQuery<V,D>

Query interface for spatial distance queries.


Field Summary
 
Fields inherited from interface de.lmu.ifi.dbs.elki.database.query.DatabaseQuery
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
 
Method Summary
 D centerDistance(SpatialComparable mbr1, SpatialComparable mbr2)
          Computes the distance between the centroids of the two given MBRs according to this distance function.
 SpatialPrimitiveDistanceFunction<? super V,D> getDistanceFunction()
          Get the inner distance function.
 D mbrDist(SpatialComparable mbr1, SpatialComparable mbr2)
          Computes the distance between the two given MBRs according to this distance function.
 D minDist(SpatialComparable mbr, DBID id)
          Computes the minimum distance between the given MBR and the FeatureVector object according to this distance function.
 D minDist(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 de.lmu.ifi.dbs.elki.database.query.distance.DistanceQuery
distance, distance, distance, distance, getDistanceFactory, getRelation, infiniteDistance, nullDistance, undefinedDistance
 

Method Detail

minDist

D 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 object
v - the FeatureVector object
Returns:
the minimum distance between the given MBR and the FeatureVector object according to this distance function

minDist

D minDist(SpatialComparable mbr,
          DBID id)
Computes the minimum distance between the given MBR and the FeatureVector object according to this distance function.

Parameters:
mbr - the MBR object
id - the query object id
Returns:
the minimum distance between the given MBR and the FeatureVector object according to this distance function

mbrDist

D mbrDist(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

centerDistance

D centerDistance(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

getDistanceFunction

SpatialPrimitiveDistanceFunction<? super V,D> getDistanceFunction()
Get the inner distance function.

Specified by:
getDistanceFunction in interface DistanceQuery<V extends SpatialComparable,D extends Distance<D>>
Returns:
Distance function

Release 0.4.0 (2011-09-20_1324)