table of contents
other versions
- jessie 1.0.10-1
mlpack::kernel::CosineDistance(3) | MLPACK | mlpack::kernel::CosineDistance(3) |
NAME¶
mlpack::kernel::CosineDistance - The cosine distance (or cosine similarity).SYNOPSIS¶
Public Member Functions¶
std::string ToString () const
Static Public Member Functions¶
template<typename VecType > static double Evaluate (const VecType &a, const VecType &b)
Detailed Description¶
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.Member Function Documentation¶
template<typename VecType > static double mlpack::kernel::CosineDistance::Evaluate (const VecType &a, const VecType &b) [static]¶
Computes the cosine distance between two points. Parameters:a First vector.
b Second vector.
Returns:
d(a, b).
std::string mlpack::kernel::CosineDistance::ToString () const [inline]¶
Returns a string representation of this object. Definition at line 56 of file cosine_distance.hpp.Author¶
Generated automatically by Doxygen for MLPACK from the source code.Tue Sep 9 2014 | Version 1.0.10 |