23 #ifndef __MLPACK_CORE_KERNELS_EXAMPLE_KERNEL_HPP
24 #define __MLPACK_CORE_KERNELS_EXAMPLE_KERNEL_HPP
116 template<
typename VecType>
117 static double Evaluate(
const VecType& a,
const VecType& b) {
return 0; }
131 template<
typename VecType>
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.