public static class LocallyWeightedDistanceFunction.Instance<V extends NumberVector<?,?>> extends AbstractIndexBasedDistanceFunction.Instance<V,LocalProjectionIndex<V,?>,DoubleDistance,LocallyWeightedDistanceFunction<? super V>> implements FilteredLocalPCABasedDistanceFunction.Instance<V,LocalProjectionIndex<V,?>,DoubleDistance>
index, parent
relation
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
Constructor and Description |
---|
LocallyWeightedDistanceFunction.Instance(Relation<V> database,
LocalProjectionIndex<V,?> index,
LocallyWeightedDistanceFunction<? super V> distanceFunction)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
DoubleDistance |
centerDistance(SpatialComparable mbr1,
SpatialComparable mbr2) |
DoubleDistance |
distance(DBID id1,
DBID id2)
Computes the distance between two given real vectors according to this
distance function.
|
DoubleDistance |
distance(SpatialComparable mbr1,
SpatialComparable mbr2) |
DoubleDistance |
minDistBROKEN(SpatialComparable mbr,
V v) |
getDistanceFunction, getIndex
distance, distance, distance
getDistanceFactory, infiniteDistance, nullDistance, undefinedDistance
getRelation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getIndex
distance, distance, distance, getDistanceFactory, getDistanceFunction, getRelation, infiniteDistance, nullDistance, undefinedDistance
public LocallyWeightedDistanceFunction.Instance(Relation<V> database, LocalProjectionIndex<V,?> index, LocallyWeightedDistanceFunction<? super V> distanceFunction)
database
- Databaseindex
- IndexdistanceFunction
- Distance Functionpublic DoubleDistance distance(DBID id1, DBID id2)
distance
in interface DistanceQuery<V extends NumberVector<?,?>,DoubleDistance>
distance
in class AbstractDistanceQuery<V extends NumberVector<?,?>,DoubleDistance>
id1
- first object idid2
- second object idpublic DoubleDistance minDistBROKEN(SpatialComparable mbr, V v)
public DoubleDistance distance(SpatialComparable mbr1, SpatialComparable mbr2)
public DoubleDistance centerDistance(SpatialComparable mbr1, SpatialComparable mbr2)