Calculates the cosine distance (not similarity) between a and b.
a
b
The first vector.
The second vector.
The cosine distance between the two vectors.
An error if the vectors do not have the same length.
https://en.wikipedia.org/wiki/Cosine_similarity#Cosine_distance
Calculates the cosine distance (not similarity) between
a
andb
.