Uses of Interface
de.aitools.aq.algebra.vector.functions.Similarity

Packages that use Similarity
de.aitools.aq.algebra.vector.functions   
 

Uses of Similarity in de.aitools.aq.algebra.vector.functions
 

Classes in de.aitools.aq.algebra.vector.functions that implement Similarity
 class CosineSimilarity
          A Similarity measure for Vectors.
The Cosine Similarity of two vectors is defined as the cosine of the angle between them.
It is calculated as the dot product of the both vectors divided by the multiplied euclidean norms of both.
The resulting similarity of a vector a and a vector b is between -1 (if a equals -b * k) and 1 (if a equals b * k), with k being a positive rational number (and thus not zero).