23 #ifndef _KERNEL_POLYNOMIAL_HPP_ 24 #define _KERNEL_POLYNOMIAL_HPP_ 40 void init(
size_t input_dim)
41 { n_params = 2; n_inputs = input_dim; };
43 double operator()(
const vectord &x1,
const vectord &x2)
45 double xx = boost::numeric::ublas::inner_prod(x1,x2);
46 return params(0)*params(0) * std::pow((params(1)+xx),static_cast<int>(mExp));
50 double gradient(
const vectord &x1,
const vectord &x2,
52 { assert(
false);
return 0.0; };
Namespace of the library interface.
Polynomial covariance function.
Atomic (simple) kernel functions.
Abstract class for an atomic kernel.