23 #ifndef _KERNEL_GAUSSIAN_HPP_ 24 #define _KERNEL_GAUSSIAN_HPP_ 38 void init(
size_t input_dim)
39 { n_params = 1; n_inputs = input_dim; };
41 double operator()(
const vectord &x1,
const vectord &x2)
43 double rl = computeWeightedNorm2(x1,x2);
48 double gradient(
const vectord &x1,
const vectord &x2,
51 double rl = computeWeightedNorm2(x1,x2);
62 void init(
size_t input_dim)
63 { n_params = input_dim; n_inputs = input_dim; };
65 double operator()(
const vectord &x1,
const vectord &x2 )
67 double rl = computeWeightedNorm2(x1,x2);
72 double gradient(
const vectord &x1,
const vectord &x2,
75 double rl = computeWeightedNorm2(x1,x2);
77 double r = (x1(component) - x2(component))/params(component);
Abstract class for isotropic kernel functors.
Namespace of the library interface.
Abstract class for anisotropic kernel functors using ARD (Automatic Relevance Determination) ...
Square exponential (Gaussian) kernel.
Atomic (simple) kernel functions.
Square exponential (Gaussian) kernel.