DistanceMinkowskiT(Double, VectorT, VectorT) Method |
Minkowski Distance, i.e. the generalized p-norm of the difference.
Namespace: Altaxo.CalcAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntaxpublic 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
DoubleThe distance value.
See Also