de.lmu.ifi.dbs.elki.distance.distancefunction
Class WeightedDistanceFunction<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.WeightedDistanceFunction<V>
- Type Parameters:
V
- the type of FeatureVector to compute the distances in between
- All Implemented Interfaces:
- DistanceFunction<V,DoubleDistance>, MeasurementFunction<V,DoubleDistance>, Parameterizable
- Direct Known Subclasses:
- HSBHistogramQuadraticDistanceFunction, RGBHistogramQuadraticDistanceFunction
public class WeightedDistanceFunction<V extends NumberVector<V,?>>
- extends AbstractDistanceFunction<V,DoubleDistance>
Provides the Weighted distance for feature vectors.
- Author:
- Elke Achtert
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
weightMatrix
protected Matrix weightMatrix
- The weight matrix.
WeightedDistanceFunction
public WeightedDistanceFunction(Matrix weightMatrix)
- Provides the Weighted distance for feature vectors.
- Parameters:
weightMatrix
- weight matrix
distance
public DoubleDistance distance(V o1,
V o2)
- Provides the Weighted distance for feature vectors.
- Parameters:
o1
- first DatabaseObjecto2
- second DatabaseObject
- Returns:
- the Weighted distance between the given two vectors as an instance
of
DoubleDistance
.