Euclidean distance

Euclidean distance

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). The associated norm is called the Euclidean norm.

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 P=(p_1,p_2,dots,p_n), and Q=(q_1,q_2,dots,q_n),, in Euclidean "n"-space, is defined as:

:sqrt{(p_1-q_1)^2 + (p_2-q_2)^2 + cdots + (p_n-q_n)^2} = sqrt{sum_{i=1}^n (p_i-q_i)^2}.

One-dimensional distance

For two 1D points, P=(p_x), and Q=(q_x),, the distance is computed as:

:sqrt{(p_x-q_x)^2} = | p_x-q_x |

The absolute value signs are used since distance is normally considered to be an unsigned scalar value.

In one dimension, there is a single homogeneous, translation-invariant metric (in other words, a distance that is induced by a norm), up to a scale factor of length, which is the Euclidean distance. In higher dimensions there are other possible norms.

Two-dimensional distance

For two 2D points, P=(p_x,p_y), and Q=(q_x,q_y),, the distance is computed as:

:sqrt{(p_x-q_x)^2 + (p_y-q_y)^2}

Alternatively, expressed in circular coordinates (also known as polar coordinates), using P=(r_1, heta_1), and Q=(r_2, heta_2),, the distance can be computed as:

:sqrt{r_1^2 + r_2^2 - 2 r_1 r_2 cos( heta_1 - heta_2)}

Three-dimensional distance

For two 3D points, P=(p_x,p_y,p_z), and Q=(q_x,q_y,q_z),, the distance is computed as

:sqrt{(p_x-q_x)^2 + (p_y-q_y)^2+(p_z-q_z)^2}.

N-dimensional distance

For two N-D points, P=(p_1,p_2,...,p_n), and Q=(q_1,q_2,...,q_n),, the distance is computed as

:sqrt{(p_1-q_1)^2 + (p_2-q_2)^2+...+(p_n-q_n)^2}.

See also

*Mahalanobis distance
*Manhattan distance
*Metric
*Pythagorean addition


Wikimedia Foundation. 2010.

Игры ⚽ Нужно решить контрольную?

Look at other dictionaries:

  • Euclidean distance — noun The distance between two points defined as the square root of the sum of the squares of the differences between the corresponding coordinates of the points; for example, in two dimensional Euclidean geometry, the Euclidean distance between… …   Wiktionary

  • Euclidean distance matrix — In mathematics, a Euclidean distance matrix is an n×n matrix representing the spacing of a set of n points in Euclidean space. If A is a Euclidean distance matrix and the points are defined on m dimensional space, then the elements of A are given …   Wikipedia

  • Euclidean distance — /juˌklɪdiən ˈdɪstəns/ (say yooh.klideeuhn distuhns) noun distance as measured in Euclidean space, that is, as one would with a tape measure or ruler …  

  • Distance matrices in phylogeny — Distance matrices are used in phylogeny as non parametric distance methods were originally applied to phenetic data using a matrix of pairwise distances. These distances are then reconciled to produce a tree (a phylogram, with informative branch… …   Wikipedia

  • Distance — This article is about distance in the mathematical or physical sense. For other senses of the term, see distance (disambiguation). Proximity redirects here. For the 2001 film, see Proximity (film). Distance (or farness) is a numerical description …   Wikipedia

  • Euclidean space — Every point in three dimensional Euclidean space is determined by three coordinates. In mathematics, Euclidean space is the Euclidean plane and three dimensional space of Euclidean geometry, as well as the generalizations of these notions to… …   Wikipedia

  • Euclidean plane isometry — In geometry, a Euclidean plane isometry is an isometry of the Euclidean plane, or more informally, a way of transforming the plane that preserves geometrical properties such as length. There are four types: translations, rotations, reflections,… …   Wikipedia

  • Distance matrix — In mathematics, computer science and graph theory, a distance matrix is a matrix (two dimensional array) containing the distances, taken pairwise, of a set of points. This matrix will have a size of N×N where N is the number of points, nodes or… …   Wikipedia

  • Euclidean — List of topics named after Euclid (Euclidean or, less commonly, Euclidian) *Euclidean space *Euclidean geometry *Euclid s Elements *Euclidean domain *Euclidean distance *Euclidean ball *Euclidean algorithm *Euclidean distance map *Extended… …   Wikipedia

  • Distance transform — A distance transform, also known as distance map or distance field, is a derived representation of a digital image. The choice of the term depends on the point of view on the object in question: whether the initial image is transformed into… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”