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; }
126 std::ostringstream convert;
127 convert <<
"ExampleKernel [" <<
this <<
"]" << std::endl;
128 return convert.str();
143 template<
typename VecType>
std::string ToString() const
Returns a string for the kernel object; in this case, with only the memory address for the kernel...
static double Evaluate(const VecType &a, const VecType &b)
Evaluates the kernel function for two given vectors.
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.
static double Normalizer()
Obtains the normalizing volume for the kernel with dimension $dimension$.
ExampleKernel()
The default constructor, which takes no parameters.