Vector.Minkowski Measure<T> Method
Returns the Minkowski distance between two vectors.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
The power-norm of the difference between left and right.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
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
TThe power-norm of the difference between left and right.
Exceptions
Argument | left is null. -or- right is null. |
Dimension | The length of left is not equal to the length of right. |