Vector.MinkowskiMeasure<T> Method

Returns the Minkowski distance between two vectors.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
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.

DimensionMismatchException

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

See Also