13#ifndef MLPACK_CORE_KERNELS_EXAMPLE_KERNEL_HPP
14#define MLPACK_CORE_KERNELS_EXAMPLE_KERNEL_HPP
100 template<
typename VecTypeA,
typename VecTypeB>
101 static double Evaluate(
const VecTypeA& ,
const VecTypeB& )
108 template<
typename Archive>
125 template<
typename VecTypeA,
typename VecTypeB>
127 const VecTypeB& ) {
return 0; }
An example kernel function.
static double Normalizer()
Obtains the normalizing volume for the kernel with dimension $dimension$.
static double ConvolutionIntegral(const VecTypeA &, const VecTypeB &)
Obtains the convolution integral [integral K(||x-a||)K(||b-x||)dx] for the two vectors.
void serialize(Archive &, const unsigned int)
Serializes the kernel.
static double Evaluate(const VecTypeA &, const VecTypeB &)
Evaluates the kernel function for two given vectors.
ExampleKernel()
The default constructor, which takes no parameters.
Linear algebra utility functions, generally performed on matrices or vectors.
The core includes that mlpack expects; standard C++ includes and Armadillo.