de.lmu.ifi.dbs.elki.distance.distancefunction
Class MinimumDistanceFunction<V extends NumberVector<V,?>>
java.lang.Object
de.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.distance.AbstractMeasurementFunction<O,D>
de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractDistanceFunction<V,DoubleDistance>
de.lmu.ifi.dbs.elki.distance.distancefunction.MinimumDistanceFunction<V>
- Type Parameters:
V
- the type of FeatureVector to compute the distances in between
- All Implemented Interfaces:
- DistanceFunction<V,DoubleDistance>, MeasurementFunction<V,DoubleDistance>, Parameterizable
public class MinimumDistanceFunction<V extends NumberVector<V,?>>
- extends AbstractDistanceFunction<V,DoubleDistance>
Maximum distance function to compute the Minimum distance for a pair of
FeatureVectors.
- Author:
- Erich Schubert
Constructor Summary |
MinimumDistanceFunction()
Provides a Minimum distance function that can compute the Minimum
distance (that is a DoubleDistance) for FeatureVectors. |
Method Summary |
DoubleDistance |
distance(V v1,
V v2)
Computes the distance between two given DatabaseObjects according to this
distance function. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MinimumDistanceFunction
public MinimumDistanceFunction()
- Provides a Minimum distance function that can compute the Minimum
distance (that is a DoubleDistance) for FeatureVectors.
distance
public DoubleDistance distance(V v1,
V v2)
- Description copied from interface:
DistanceFunction
- Computes the distance between two given DatabaseObjects according to this
distance function.
- Parameters:
v1
- first DatabaseObjectv2
- second DatabaseObject
- Returns:
- the distance between two given DatabaseObjects according to this
distance function