15 #ifndef __MLPACK_CORE_KERNELS_COSINE_DISTANCE_HPP 16 #define __MLPACK_CORE_KERNELS_COSINE_DISTANCE_HPP 42 template<
typename VecTypeA,
typename VecTypeB>
43 static double Evaluate(
const VecTypeA& a,
const VecTypeB& b);
46 template<
typename Archive>
56 static const bool IsNormalized =
true;
59 static const bool UsesSquaredDistance =
false;
66 #include "cosine_distance_impl.hpp" void Serialize(Archive &, const unsigned int)
Serialize the class (there's nothing to save).
This is a template class that can provide information about various kernels.
Linear algebra utility functions, generally performed on matrices or vectors.
The cosine distance (or cosine similarity).
Include all of the base components required to write MLPACK methods, and the main MLPACK Doxygen docu...
static double Evaluate(const VecTypeA &a, const VecTypeB &b)
Computes the cosine distance between two points.