CosineDistance Class Reference
The cosine distance (or cosine similarity). More...
|void||Serialize (Archive &, const unsigned int)|
|Serialize the class (there's nothing to save). More...|
|static double||Evaluate (const VecTypeA &a, const VecTypeB &b)|
|Computes the cosine distance between two points. More...|
The cosine distance (or cosine similarity).
It is defined by
and this class assumes the standard L2 inner product.
Member Function Documentation
Computes the cosine distance between two points.
a First vector. b Second vector.
- d(a, b).
The documentation for this class was generated from the following file:
Generated by 1.8.13