Class MaternKernel

Inheritance Relationships

Base Type

Class Documentation

class genif::MaternKernel : public genif::Kernel

Provides an implementation of the Matern kernel.

Public Functions

MaternKernel(VectorX Sigma, unsigned int d = 3, data_t l = 1.0)

Instantiates the Matern kernel.

Parameters
  • Sigma: The scaling vector, which needs to hold as many entries as the vectors you want to compute the kernel function value with.

  • d:

  • l:

data_t operator()(const VectorX &x1, const VectorX &x2) const override

Computes the Matern kernel function value for two vectors.

Return

The Matern kernel function value \(k(\vec{x}_1, \vec{x}_1)\).

Parameters
  • x1: A real-valued vector.

  • x2: A real-valued vector.

unsigned int getD() const

Returns the D property of this Matern kernel instance.

Return

As stated above.

data_t getL() const

Returns the L property of this Matern kernel instance.

Return

As stated above.

const VectorX &getSigma() const

Returns the scaling vector of this Matern kernel instance.

Return

As stated above.