EuclideanDistance

EuclideanDistance[u,v]

gives the Euclidean distance between vectors u and v.

Details

Examples

open allclose all

Basic Examples  (2)

Euclidean distance between two vectors:

Euclidean distance between numeric vectors:

Scope  (2)

Compute distance between any vectors of equal length:

Compute distance between vectors of any precision:

Applications  (2)

Cluster data using Euclidean distance:

Demonstrate the triangle inequality:

Properties & Relations  (7)

EuclideanDistance is equivalent to Norm of a difference:

The square of EuclideanDistance is SquaredEuclideanDistance:

EuclideanDistance is greater than or equal to ChebyshevDistance:

CosineDistance includes a dot product scaled by Euclidean distances from the origin:

CorrelationDistance includes a dot product scaled by Euclidean distances from means:

StandardDeviation as a EuclideanDistance from the Mean:

EuclideanDistance computed from RootMeanSquare of a difference:

Introduced in 2007
 (6.0)