This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

CosineDistance

CosineDistance
gives the angular cosine distance between vectors u and v.
Cosine distance between two vectors:
Cosine distance between numeric vectors:
Cosine distance between two vectors:
In[1]:=
Click for copyable input
Out[1]=
 
Cosine distance between numeric vectors:
In[1]:=
Click for copyable input
Out[1]=
Compute distance between any vectors of equal length:
Compute distance between vectors of any precision:
Cluster data using cosine distance:
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:
New in 6