de.lmu.ifi.dbs.elki.distance.distancefunction
Class LocallyWeightedDistanceFunction.Instance<V extends NumberVector<?,?>>
java.lang.Object
de.lmu.ifi.dbs.elki.database.query.AbstractDataBasedQuery<O>
de.lmu.ifi.dbs.elki.database.query.distance.AbstractDistanceQuery<O,D>
de.lmu.ifi.dbs.elki.database.query.distance.AbstractDatabaseDistanceQuery<O,D>
de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractIndexBasedDistanceFunction.Instance<V,LocalProjectionIndex<V,?>,DoubleDistance,LocallyWeightedDistanceFunction<? super V>>
de.lmu.ifi.dbs.elki.distance.distancefunction.LocallyWeightedDistanceFunction.Instance<V>
- All Implemented Interfaces:
- DatabaseQuery, DistanceQuery<V,DoubleDistance>, FilteredLocalPCABasedDistanceFunction.Instance<V,LocalProjectionIndex<V,?>,DoubleDistance>, IndexBasedDistanceFunction.Instance<V,LocalProjectionIndex<V,?>,DoubleDistance>
- Enclosing class:
- LocallyWeightedDistanceFunction<V extends NumberVector<?,?>>
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>
Instance of this distance for a particular database.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocallyWeightedDistanceFunction.Instance
public LocallyWeightedDistanceFunction.Instance(Relation<V> database,
LocalProjectionIndex<V,?> index,
LocallyWeightedDistanceFunction<? super V> distanceFunction)
- Constructor.
- Parameters:
database
- Databaseindex
- IndexdistanceFunction
- Distance Function
distance
public DoubleDistance distance(DBID id1,
DBID id2)
- Computes the distance between two given real vectors according to this
distance function.
- Specified by:
distance
in interface DistanceQuery<V extends NumberVector<?,?>,DoubleDistance>
- Specified by:
distance
in class AbstractDistanceQuery<V extends NumberVector<?,?>,DoubleDistance>
- Parameters:
id1
- first object idid2
- second object id
- Returns:
- the distance between two given real vectors according to this
distance function
minDistBROKEN
public DoubleDistance minDistBROKEN(SpatialComparable mbr,
V v)
distance
public DoubleDistance distance(SpatialComparable mbr1,
SpatialComparable mbr2)
centerDistance
public DoubleDistance centerDistance(SpatialComparable mbr1,
SpatialComparable mbr2)