Click or drag to resize

DistanceMinkowskiT(Double, VectorT, VectorT) Method

Minkowski Distance, i.e. the generalized p-norm of the difference.

Namespace: Altaxo.Calc
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public static double Minkowski<T>(
	double p,
	Vector<T> a,
	Vector<T> b
)
where T : struct, new(), IEquatable<T>, IFormattable

Parameters

p  Double
The p value of the norm.
a  VectorT
The first vector.
b  VectorT
The second vector.

Type Parameters

T
The type of the vector elements.

Return Value

Double
The distance value.
See Also