
public class MatrixWeightedDistanceFunction extends AbstractNumberVectorDistanceFunction
| Modifier and Type | Field and Description |
|---|---|
protected Matrix |
weightMatrix
The weight matrix.
|
| Constructor and Description |
|---|
MatrixWeightedDistanceFunction(Matrix weightMatrix)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
distance(NumberVector o1,
NumberVector o2)
Computes the distance between two given DatabaseObjects according to this
distance function.
|
VectorFieldTypeInformation<? super NumberVector> |
getInputTypeRestriction()
Get the input data type of the function.
|
dimensionality, dimensionality, dimensionality, dimensionalityinstantiate, isMetric, isSymmetricclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinstantiate, isMetric, isSymmetricprotected Matrix weightMatrix
public MatrixWeightedDistanceFunction(Matrix weightMatrix)
weightMatrix - weight matrixpublic double distance(NumberVector o1, NumberVector o2)
PrimitiveDistanceFunctiondistance in interface NumberVectorDistanceFunction<NumberVector>distance in interface PrimitiveDistanceFunction<NumberVector>distance in class AbstractPrimitiveDistanceFunction<NumberVector>o1 - first DatabaseObjecto2 - second DatabaseObjectpublic VectorFieldTypeInformation<? super NumberVector> getInputTypeRestriction()
DistanceFunctiongetInputTypeRestriction in interface DistanceFunction<NumberVector>getInputTypeRestriction in interface PrimitiveDistanceFunction<NumberVector>getInputTypeRestriction in class AbstractNumberVectorDistanceFunctionCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.