gives the squared Euclidean distance between vectors u and v.



open allclose all

Basic Examples  (2)

Squared Euclidean distance between two vectors:

Squared 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 squared Euclidean distance:

Demonstrate the triangle inequality:

Properties & Relations  (4)

SquaredEuclideanDistance is equivalent to the squared Norm of a difference:

The square root of SquaredEuclideanDistance is EuclideanDistance:

Variance as a SquaredEuclideanDistance from the Mean:

SquaredEuclideanDistance computed from RootMeanSquare of a difference:

Introduced in 2007