covariance__functions::PeriodicSquareExponential2
#include <covariance_functions.h>

Public Member Functions | |
| PeriodicSquareExponential2 (const Eigen::VectorXd &hyperParameters) | |
| virtual CovFunc * | clone () 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 ¶ms) override |
| void | setParameters (const Eigen::VectorXd ¶ms) override |
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)
\]](form_2.png)
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)
\]](form_3.png)
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})
\]](form_5.png)
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]
|
explicit |
Definition at line 105 of file covariance_functions.cpp.
Member Function Documentation
◆ clone()
|
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()
|
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()
|
overridevirtual |
Implements covariance_functions::CovFunc.
Definition at line 177 of file covariance_functions.cpp.
◆ getExtraParameters()
|
overridevirtual |
Implements covariance_functions::CovFunc.
Definition at line 167 of file covariance_functions.cpp.
◆ getParameterCount()
|
overridevirtual |
Returns the number of hyper-parameters.
Implements covariance_functions::CovFunc.
Definition at line 172 of file covariance_functions.cpp.
◆ getParameters()
|
overridevirtual |
Returns the hyper-parameters.
Implements covariance_functions::CovFunc.
Definition at line 162 of file covariance_functions.cpp.
◆ setExtraParameters()
|
overridevirtual |
Implements covariance_functions::CovFunc.
Definition at line 157 of file covariance_functions.cpp.
◆ setParameters()
|
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:
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri May 2 2025 12:02:41 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.