Vector.Correlation Distance<T> Method
Returns a distance that is a function of the correlation between two vectors.
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
The correlation between left and right scaled in such a way that perfect correlation corresponds to a value of 0, and perfect inverse correlation corresponds to a value of 1.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public static double CorrelationDistance<T>(
Vector<T> left,
Vector<T> right
)
Parameters
Type Parameters
- T
Return Value
DoubleThe correlation between left and right scaled in such a way that perfect correlation corresponds to a value of 0, and perfect inverse correlation corresponds to a value of 1.
Exceptions
Argument | left is null. -or- right is null. |
Dimension | The length of left is not equal to the length of right. |