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; }
static double Normalizer()
Obtains the normalizing volume for the kernel with dimension $dimension$.
Linear algebra utility functions, generally performed on matrices or vectors.
The core includes that mlpack expects; standard C++ includes and Armadillo.
ExampleKernel()
The default constructor, which takes no parameters.
An example kernel function.
static double Evaluate(const VecTypeA &, const VecTypeB &)
Evaluates the kernel function for two given vectors.
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 uint32_t)
Serializes the kernel.