Euclidean distance: Difference between revisions
Tiddly Tom (talk | contribs) m Reverted 1 edit by 74.33.111.206 to last version by Cometstyles |
→See also: what's string metrics got to do with this? |
||
Line 35: | Line 35: | ||
*[[Mahalanobis distance]] |
*[[Mahalanobis distance]] |
||
*[[Manhattan distance]] |
*[[Manhattan distance]] |
||
*[[String metric]] |
|||
*[[Metric (mathematics)|Metric]] |
*[[Metric (mathematics)|Metric]] |
||
Revision as of 10:48, 10 April 2008
In mathematics, the Euclidean distance or Euclidean metric is the "ordinary" distance between two points that one would measure with a ruler, which can be proven by repeated application of the Pythagorean theorem. By using this formula as distance, Euclidean space becomes a metric space (even a Hilbert space). Older literature refers to this metric as Pythagorean metric. The technique has been rediscovered numerous times throughout history, as it is a logical extension of the Pythagorean theorem.
Definition
The Euclidean distance between points and , in Euclidean n-space, is defined as:
One-dimensional distance
For two 1D points, and , the distance is computed as:
The absolute value signs are used since distance is normally considered to be an unsigned scalar value.
Two-dimensional distance
For two 2D points, and , the distance is computed as:
Alternatively, expressed in circular coordinates (also known as polar coordinates), using and , the distance can be computed as:
Three-dimensional distance
For two 3D points, and , the distance is computed as