MLPACK
1.0.7
|
The cosine distance (or cosine similarity). More...
Static Public Member Functions | |
template<typename VecType > | |
static double | Evaluate (const VecType &a, const VecType &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.
Definition at line 40 of file cosine_distance.hpp.
|
static |
Computes the cosine distance between two points.
a | First vector. |
b | Second vector. |