15 #ifndef __MLPACK_CORE_KERNELS_EXAMPLE_KERNEL_HPP 16 #define __MLPACK_CORE_KERNELS_EXAMPLE_KERNEL_HPP 103 template<
typename VecTypeA,
typename VecTypeB>
104 static double Evaluate(
const VecTypeA& ,
const VecTypeB& )
111 template<
typename Archive>
128 template<
typename VecTypeA,
typename VecTypeB>
130 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.
An example kernel function.
Include all of the base components required to write MLPACK methods, and the main MLPACK Doxygen docu...
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.