MLPACK  1.0.8
example_kernel.hpp
Go to the documentation of this file.
1 
23 #ifndef __MLPACK_CORE_KERNELS_EXAMPLE_KERNEL_HPP
24 #define __MLPACK_CORE_KERNELS_EXAMPLE_KERNEL_HPP
25 
26 #include <mlpack/core.hpp>
27 
28 namespace mlpack {
29 
54 namespace kernel {
55 
95 {
96  public:
104 
116  template<typename VecType>
117  static double Evaluate(const VecType& a, const VecType& b) { return 0; }
118 
131  template<typename VecType>
132  static double ConvolutionIntegral(const VecType& a, const VecType& b)
133  { return 0; }
134 
145  static double Normalizer(size_t dimension) { return 0; }
146 };
147 
148 }; // namespace kernel
149 }; // namespace mlpack
150 
151 #endif
static double Evaluate(const VecType &a, const VecType &b)
Evaluates the kernel function for two given vectors.
static double Normalizer(size_t dimension)
Obtains the normalizing volume for the kernel with dimension $dimension$.
static double ConvolutionIntegral(const VecType &a, const VecType &b)
Obtains the convolution integral [integral K(||x-a||)K(||b-x||)dx] for the two vectors.
An example kernel function.
ExampleKernel()
The default constructor, which takes no parameters.