V
- Vector type to usepublic class SpatialPrimitiveDistanceQuery<V extends SpatialComparable> extends PrimitiveDistanceQuery<V> implements SpatialDistanceQuery<V>
Modifier and Type | Field and Description |
---|---|
protected SpatialPrimitiveDistanceFunction<? super V> |
distanceFunction
The distance function we use.
|
relation
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
Constructor and Description |
---|
SpatialPrimitiveDistanceQuery(Relation<? extends V> relation,
SpatialPrimitiveDistanceFunction<? super V> distanceFunction) |
Modifier and Type | Method and Description |
---|---|
SpatialPrimitiveDistanceFunction<? super V> |
getDistanceFunction()
Get the inner distance function.
|
double |
minDist(SpatialComparable mbr,
DBID id)
Computes the minimum distance between the given MBR and the FeatureVector
object according to this distance function.
|
double |
minDist(SpatialComparable mbr,
V v)
Computes the minimum distance between the given MBR and the FeatureVector
object according to this distance function.
|
distance, distance, distance, distance
getRelation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
distance, distance, distance, distance, getRelation
protected final SpatialPrimitiveDistanceFunction<? super V extends SpatialComparable> distanceFunction
public SpatialPrimitiveDistanceQuery(Relation<? extends V> relation, SpatialPrimitiveDistanceFunction<? super V> distanceFunction)
relation
- Representation to usedistanceFunction
- Distance function to usepublic double minDist(SpatialComparable mbr, V v)
SpatialDistanceQuery
minDist
in interface SpatialDistanceQuery<V extends SpatialComparable>
mbr
- the MBR objectv
- the FeatureVector objectpublic double minDist(SpatialComparable mbr, DBID id)
SpatialDistanceQuery
minDist
in interface SpatialDistanceQuery<V extends SpatialComparable>
mbr
- the MBR objectid
- the query object idpublic SpatialPrimitiveDistanceFunction<? super V> getDistanceFunction()
DistanceQuery
getDistanceFunction
in interface DistanceQuery<V extends SpatialComparable>
getDistanceFunction
in interface SpatialDistanceQuery<V extends SpatialComparable>
getDistanceFunction
in class PrimitiveDistanceQuery<V extends SpatialComparable>
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.