Vector.Bray Curtis Distance<T> Method
Returns the Bray-Curtis distance between two vectors.
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
The sum of the ratio of the sum of the differences between corresponding elements of left and right to their combined sum.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public static T BrayCurtisDistance<T>(
Vector<T> left,
Vector<T> right
)
Parameters
Type Parameters
- T
Return Value
TThe sum of the ratio of the sum of the differences between corresponding elements of left and right to their combined sum.
Exceptions
Argument | left is null.
-or- right is null. |
Dimension | The length of left is not equal to the length of right. |