DistanceManhattanT(VectorT, VectorT) Method |
Manhattan Distance, i.e. the L1-norm of the difference.
Namespace: Altaxo.CalcAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntaxpublic static double Manhattan<T>(
Vector<T> a,
Vector<T> b
)
where T : struct, new(), IEquatable<T>, IFormattable
Parameters
- 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