SquaredEuclideanDistance

SquaredEuclideanDistance[u,v]

gives the squared Euclidean distance between vectors u and v.

Details

Examples

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:

Wolfram Research (2007), SquaredEuclideanDistance, Wolfram Language function, https://reference.wolfram.com/language/ref/SquaredEuclideanDistance.html.

Text

Wolfram Research (2007), SquaredEuclideanDistance, Wolfram Language function, https://reference.wolfram.com/language/ref/SquaredEuclideanDistance.html.

CMS

Wolfram Language. 2007. "SquaredEuclideanDistance." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/SquaredEuclideanDistance.html.

APA

Wolfram Language. (2007). SquaredEuclideanDistance. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/SquaredEuclideanDistance.html

BibTeX

@misc{reference.wolfram_2024_squaredeuclideandistance, author="Wolfram Research", title="{SquaredEuclideanDistance}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/SquaredEuclideanDistance.html}", note=[Accessed: 23-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_squaredeuclideandistance, organization={Wolfram Research}, title={SquaredEuclideanDistance}, year={2007}, url={https://reference.wolfram.com/language/ref/SquaredEuclideanDistance.html}, note=[Accessed: 23-November-2024 ]}