Vector.Minkowski Measure<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#
The power-norm of the difference between left and right.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
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. |