Vector.BrayCurtisDistance<T> Method

Returns the Bray-Curtis distance between two vectors.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
C#
public static T BrayCurtisDistance<T>(
	Vector<T> left,
	Vector<T> right
)

Parameters

left  Vector<T>
The first Vector<T>.
right  Vector<T>
The second Vector<T>.

Type Parameters

T

Return Value

T
The sum of the ratio of the sum of the differences between corresponding elements of left and right to their combined sum.

Exceptions

ArgumentNullException

left is null.

-or-

right is null.

DimensionMismatchException

The length of left is not equal to the length of right.

See Also