Vector.MinkowskiMeasure<T> Method

Returns the Minkowski distance between two vectors.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static T MinkowskiMeasure<T>(
	T power,
	Vector<T> left,
	Vector<T> right
)

Parameters

power  T
Exponent of the Minkowski measure.
left  Vector<T>
The first Vector<T>.
right  Vector<T>
The second Vector<T>.

Type Parameters

T

Return Value

T
The power-norm of the difference between left and right.

Exceptions

ArgumentNullException

left is null.

-or-

right is null.

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

See Also