SquaredEuclideanDistance
SquaredEuclideanDistance [u,v]
gives the squared Euclidean distance between vectors u and v.
Details
- SquaredEuclideanDistance [u,v] is equivalent to Norm [u-v]2. »
Examples
open allclose allBasic 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:
Related Guides
History
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_2025_squaredeuclideandistance, author="Wolfram Research", title="{SquaredEuclideanDistance}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/SquaredEuclideanDistance.html}", note=[Accessed: 04-April-2025 ]}
BibLaTeX
@online{reference.wolfram_2025_squaredeuclideandistance, organization={Wolfram Research}, title={SquaredEuclideanDistance}, year={2007}, url={https://reference.wolfram.com/language/ref/SquaredEuclideanDistance.html}, note=[Accessed: 04-April-2025 ]}