L1Distanzen
L1Distanzen, also known as Manhattan distance or taxicab geometry, is a metric in a vector space. It is defined as the sum of the absolute differences of the coordinates of two points. For two points p and q in an n-dimensional space, the L1 distance is given by the formula: d1(p, q) = sum(|pi - qi|) for i from 1 to n. This metric is named after the grid-like street layout of Manhattan, where a taxi would have to travel along the streets rather than directly through city blocks.
Unlike the more common Euclidean distance (L2 distance), which represents the straight-line distance between two points,
The L1 distance is always non-negative and satisfies the properties of a metric: non-negativity, identity of