Cosine Similarity

The cosine similarity between two vectors (in the same vector space) is define as the cosine of the angle between them. Thus two co-linear vectors pointing in the same direction have cosine similarity 1, whereas perpendicular vectors have cosine similarity 0.