cosineSimilarity
Computes the cosine similarity between two float vectors of equal dimension.
Return
The cosine similarity value in the range -1, 1.
Parameters
a
The first vector.
b
The second vector.
Throws
if the vectors have different dimensions.