Ahlswede–Daykin inequality: Difference between revisions
No edit summary |
en>Yobot m →References: WP:CHECKWIKI error fixes - Replaced endash with hyphen in sortkey per WP:MCSTJR using AWB (9100) |
||
Line 1: | Line 1: | ||
The '''Minkowski distance''' is a [[metric (mathematics)|metric]] on [[Euclidean 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 | |||
: <math>P=(x_1,x_2,\ldots,x_n)\text{ and }Q=(y_1,y_2,\ldots,y_n) \in \mathbb{R}^n</math> | |||
is defined as: | |||
:<math>\left(\sum_{i=1}^n |x_i-y_i|^p\right)^{1/p}.</math> | |||
For <math>p\geq1</math>, the Minkowski distance is a [[Metric (mathematics)|metric]] as a result of the [[Minkowski inequality]]. For <math>p<1</math>, it is not - the distance between (0,0) and (1,1) is <math>2^{1/p}>2</math>, but the point (0,1) is a distance 1 from both of these points. Hence, this violates the [[triangle inequality]]. | |||
Minkowski distance is typically used with ''p'' being 1 or 2. The latter is the [[Euclidean distance]], while the former is sometimes known as the [[Manhattan distance]]. In the limiting case of ''p'' reaching infinity, we obtain the [[Chebyshev distance]]: | |||
:<math>\lim_{p\to\infty}{\left(\sum_{i=1}^n |x_i-y_i|^p\right)^\frac{1}{p}} = \max_{i=1}^n |x_i-y_i|. \,</math> | |||
Similarly, for ''p'' reaching negative infinity, we have: | |||
:<math>\lim_{p\to-\infty}{\left(\sum_{i=1}^n |x_i-y_i|^p\right)^\frac{1}{p}} = \min_{i=1}^n |x_i-y_i|. \,</math> | |||
The Minkowski distance can also be viewed as a multiple of the [[power mean]] of the component-wise differences between ''P'' and ''Q''. | |||
The following figure shows unit circles with various values of ''p'': | |||
[[File:Minkowski3.png|760px|center]] | |||
==See also== | |||
* [[Lp space|''L''<sup>''p''</sup> space]] | |||
==External links== | |||
[https://gist.github.com/pallas/5565528 Simple IEEE 754 implementation in C++] | |||
[[Category:Normed spaces]] |
Latest revision as of 08:40, 21 April 2013
The Minkowski distance is a metric on Euclidean 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. For , it is not - the distance between (0,0) and (1,1) is , but the point (0,1) is a distance 1 from both of these points. Hence, this violates the triangle inequality.
Minkowski distance is typically used with p being 1 or 2. The latter is the Euclidean distance, while the former is sometimes known as the Manhattan distance. In the limiting case of p reaching infinity, we obtain the Chebyshev distance:
Similarly, for p reaching negative infinity, we have:
The Minkowski distance can also be viewed as a multiple of the power mean of the component-wise differences between P and Q.
The following figure shows unit circles with various values of p: