Cosine similarity

The cosine of the angle between two vectors, used to measure how similar two documents' word-count vectors are: 1 for pointing the same direction, 0 for unrelated.

See it explained in full