covariance__functions::PeriodicSquareExponential2

Search for usage in LXR

covariance_functions::PeriodicSquareExponential2 Class Reference

#include <covariance_functions.h>

Inheritance diagram for covariance_functions::PeriodicSquareExponential2:

Public Member Functions

 PeriodicSquareExponential2 (const Eigen::VectorXd &hyperParameters)
 
virtual CovFuncclone () const override
 
Eigen::MatrixXd evaluate (const Eigen::VectorXd &x1, const Eigen::VectorXd &x2) override
 
int getExtraParameterCount () const override
 
const Eigen::VectorXd & getExtraParameters () const override
 
int getParameterCount () const override
 
const Eigen::VectorXd & getParameters () const override
 
void setExtraParameters (const Eigen::VectorXd &params) override
 
void setParameters (const Eigen::VectorXd &params) override
 
- Public Member Functions inherited from covariance_functions::CovFunc

Detailed Description

The function computes a combined covariance function. It is a periodic covariance function with two additional square exponential components. This combination makes it possible to learn a signal that consists of periodic parts, long-range aperiodic parts and small-range deformations.

Square Exponential Component:

\[
k _{\textsc{se}}(t,t';\theta_\textsc{se},\ell_\textsc{se}) =
\theta_\textsc{se} \cdot
\exp\left(-\frac{(t-t')^2}{2\ell_\textsc{se}^{2}}\right)
\]

Periodic Component:

\[
k_\textsc{p}(t,t';\theta_\textsc{p},\ell_\textsc{p},\lambda) =
\theta_\textsc{p} \cdot
\exp\left(-\frac{2\sin^2\left(\frac{\pi}{\lambda}
(t-t')\right)}{\ell_\textsc{p}^2}\right)
\]

Kernel Combination:

\[
k _\textsc{c}(t,t';\theta_\textsc{se},\ell_\textsc{se},\theta_\textsc{p},
\ell_\textsc{p},\lambda) =
k_{\textsc{se},1}(t,t';\theta_{\textsc{se},1},\ell_{\textsc{se},1})
+
k_\textsc{p}(t,t';\theta_\textsc{p},\ell_\textsc{p},\lambda)
+
k_{\textsc{se},2}(t,t';\theta_{\textsc{se},2},\ell_{\textsc{se},2})
\]

Definition at line 163 of file covariance_functions.h.

Constructor & Destructor Documentation

◆ PeriodicSquareExponential2() [1/2]

covariance_functions::PeriodicSquareExponential2::PeriodicSquareExponential2 ( )

Definition at line 102 of file covariance_functions.cpp.

◆ PeriodicSquareExponential2() [2/2]

covariance_functions::PeriodicSquareExponential2::PeriodicSquareExponential2 ( const Eigen::VectorXd & hyperParameters)
explicit

Definition at line 105 of file covariance_functions.cpp.

Member Function Documentation

◆ clone()

virtual CovFunc * covariance_functions::PeriodicSquareExponential2::clone ( ) const
inlineoverridevirtual

Produces a clone to be able to copy the object.

Implements covariance_functions::CovFunc.

Definition at line 190 of file covariance_functions.h.

◆ evaluate()

Eigen::MatrixXd covariance_functions::PeriodicSquareExponential2::evaluate ( const Eigen::VectorXd & x1,
const Eigen::VectorXd & x2 )
overridevirtual

Evaluates the covariance function, caches the quantities that are needed to calculate gradient and Hessian.

Implements covariance_functions::CovFunc.

Definition at line 108 of file covariance_functions.cpp.

◆ getExtraParameterCount()

int covariance_functions::PeriodicSquareExponential2::getExtraParameterCount ( ) const
overridevirtual

Implements covariance_functions::CovFunc.

Definition at line 177 of file covariance_functions.cpp.

◆ getExtraParameters()

const Eigen::VectorXd & covariance_functions::PeriodicSquareExponential2::getExtraParameters ( ) const
overridevirtual

Implements covariance_functions::CovFunc.

Definition at line 167 of file covariance_functions.cpp.

◆ getParameterCount()

int covariance_functions::PeriodicSquareExponential2::getParameterCount ( ) const
overridevirtual

Returns the number of hyper-parameters.

Implements covariance_functions::CovFunc.

Definition at line 172 of file covariance_functions.cpp.

◆ getParameters()

const Eigen::VectorXd & covariance_functions::PeriodicSquareExponential2::getParameters ( ) const
overridevirtual

Returns the hyper-parameters.

Implements covariance_functions::CovFunc.

Definition at line 162 of file covariance_functions.cpp.

◆ setExtraParameters()

void covariance_functions::PeriodicSquareExponential2::setExtraParameters ( const Eigen::VectorXd & params)
overridevirtual

Implements covariance_functions::CovFunc.

Definition at line 157 of file covariance_functions.cpp.

◆ setParameters()

void covariance_functions::PeriodicSquareExponential2::setParameters ( const Eigen::VectorXd & params)
overridevirtual

Method to set the hyper-parameters.

Implements covariance_functions::CovFunc.

Definition at line 152 of file covariance_functions.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:48 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.