Class MaternKernel¶
Defined in File MaternKernel.h
Inheritance Relationships¶
Base Type¶
public genif::Kernel(Class Kernel)
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
Dproperty of this Matern kernel instance.- Return
As stated above.
-