CosineDistance[u,v]
gives the angular cosine distance between vectors u and v.


CosineDistance
CosineDistance[u,v]
gives the angular cosine distance between vectors u and v.
Examples
open all close allScope (2)
Properties & Relations (3)
Cosine distance includes a dot product scaled by norms:
Cosine distance includes a dot product scaled by Euclidean distances from the origin:
CosineDistance of vectors shifted by their means is equivalent to CorrelationDistance:
Tech Notes
Related Guides
History
Text
Wolfram Research (2007), CosineDistance, Wolfram Language function, https://reference.wolfram.com/language/ref/CosineDistance.html.
CMS
Wolfram Language. 2007. "CosineDistance." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/CosineDistance.html.
APA
Wolfram Language. (2007). CosineDistance. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CosineDistance.html
BibTeX
@misc{reference.wolfram_2025_cosinedistance, author="Wolfram Research", title="{CosineDistance}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/CosineDistance.html}", note=[Accessed: 13-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_cosinedistance, organization={Wolfram Research}, title={CosineDistance}, year={2007}, url={https://reference.wolfram.com/language/ref/CosineDistance.html}, note=[Accessed: 13-August-2025]}