The cosine distance (or cosine similarity).
std::string ToString () const
Returns a string representation of this object.
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
\[ d(a, b) = ac{a^T b}{|| a || || b ||} \].PP and this class assumes the standard L2 inner product.
Definition at line 40 of file cosine_distance.hpp.
Computes the cosine distance between two points.
Parameters:
a First vector.
b Second vector.
Returns:
d(a, b).
Returns a string representation of this object.
Definition at line 56 of file cosine_distance.hpp.
Generated automatically by Doxygen for MLPACK from the source code.