Minkowski Distance
Minkowski Distance
Minkowski Distance
Minkowski distance
The Minkowski distance is a metric in a normed vector space which can be considered as a generalization of both
the Euclidean distance and the Manhattan distance.
Definition
The Minkowski distance of order p between two points
is defined as:
For , the Minkowski distance is a metric as a result of the Minkowski inequality. When , the distance
between (0,0) and (1,1) is , but the point (0,1) is at a distance 1 from both of these points. Since this violates
the triangle inequality, for it is not a metric.
Minkowski distance is typically used with p being 1 or 2, which correspond to the Manhattan distance and the
Euclidean distance, respectively. In the limiting case of p reaching infinity, we obtain the Chebyshev distance:
The Minkowski distance can also be viewed as a multiple of the power mean of the component-wise differences
between P and Q.
https://en.wikipedia.org/wiki/Minkowski_distance 1/2
1/20/2019 Minkowski distance - Wikipedia
See also
Lp space
Generalized mean
External links
Simple IEEE 754 implementation in C++ (https://gist.github.com/pallas/5565528)
Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. By using
this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia
Foundation, Inc., a non-profit organization.
https://en.wikipedia.org/wiki/Minkowski_distance 2/2