Table 2. Techniques for measuring the similarity between two vectors u and v of size d.
Similarity Technique | Description | Relation | Formula |
---|---|---|---|
Euclidean distance | Length of the line between ends of vectors | Decreasing | |
Cosine similarity | Cosine of the angle between vectors () | Increasing | |
Dot product | Cosine multiplied by lengths of the vectors | Increasing |