cosine_distance.hpp

Go to the documentation of this file.
00001 
00023 #ifndef __MLPACK_CORE_KERNELS_COSINE_DISTANCE_HPP
00024 #define __MLPACK_CORE_KERNELS_COSINE_DISTANCE_HPP
00025 
00026 #include <mlpack/core.hpp>
00027 
00028 namespace mlpack {
00029 namespace kernel {
00030 
00040 class CosineDistance
00041 {
00042  public:
00050   template<typename VecType>
00051   static double Evaluate(const VecType& a, const VecType& b);
00052 };
00053 
00055 template<>
00056 class KernelTraits<CosineDistance>
00057 {
00058  public:
00060   static const bool IsNormalized = true;
00061 };
00062 
00063 }; // namespace kernel
00064 }; // namespace mlpack
00065 
00066 // Include implementation.
00067 #include "cosine_distance_impl.hpp"
00068 
00069 #endif

Generated on 13 Aug 2014 for MLPACK by  doxygen 1.6.1