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. | |
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 double mlpack::kernel::CosineDistance::Evaluate | ( | const VecType & | a, | |
| const VecType & | b | |||
| ) | [inline, static] |
Computes the cosine distance between two points.
| a | First vector. | |
| b | Second vector. |
1.6.1