mlpack  2.0.1
kernel_traits.hpp
Go to the documentation of this file.
1 
15 #ifndef __MLPACK_CORE_KERNELS_KERNEL_TRAITS_HPP
16 #define __MLPACK_CORE_KERNELS_KERNEL_TRAITS_HPP
17 
18 namespace mlpack {
19 namespace kernel {
20 
28 template<typename KernelType>
30 {
31  public:
35  static const bool IsNormalized = false;
36 
40  static const bool UsesSquaredDistance = false;
41 };
42 
43 } // namespace kernel
44 } // namespace mlpack
45 
46 #endif
This is a template class that can provide information about various kernels.
Linear algebra utility functions, generally performed on matrices or vectors.
static const bool UsesSquaredDistance
If true, then the kernel include a squared distance, ||x - y||^2 .
static const bool IsNormalized
If true, then the kernel is normalized: K(x, x) = K(y, y) = 1 for all x.