13 #ifndef MLPACK_CORE_KERNELS_EXAMPLE_KERNEL_HPP 14 #define MLPACK_CORE_KERNELS_EXAMPLE_KERNEL_HPP 101 template<
typename VecTypeA,
typename VecTypeB>
102 static double Evaluate(
const VecTypeA& ,
const VecTypeB& )
109 template<
typename Archive>
126 template<
typename VecTypeA,
typename VecTypeB>
128 const VecTypeB& ) {
return 0; }
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.
Linear algebra utility functions, generally performed on matrices or vectors.
The core includes that mlpack expects; standard C++ includes and Armadillo.
An example kernel function.
static double Normalizer()
Obtains the normalizing volume for the kernel with dimension $dimension$.
ExampleKernel()
The default constructor, which takes no parameters.
void Serialize(Archive &, const unsigned int)
Serializes the kernel.