covariance__functions::PeriodicSquareExponential
#include <covariance_functions.h>

Public Member Functions | |
| PeriodicSquareExponential (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 an additional square exponential. This combination makes it possible to learn a signal that consists of both periodic and aperiodic parts.
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}}(t,t';\theta_\textsc{se},\ell_\textsc{se})
+
k_\textsc{p}(t,t';\theta_\textsc{p},\ell_\textsc{p},\lambda)
\]](form_4.png)
Definition at line 93 of file covariance_functions.h.
Constructor & Destructor Documentation
◆ PeriodicSquareExponential() [1/2]
| covariance_functions::PeriodicSquareExponential::PeriodicSquareExponential | ( | ) |
Definition at line 27 of file covariance_functions.cpp.
◆ PeriodicSquareExponential() [2/2]
|
explicit |
Definition at line 30 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 124 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 33 of file covariance_functions.cpp.
◆ getExtraParameterCount()
|
overridevirtual |
Implements covariance_functions::CovFunc.
Definition at line 95 of file covariance_functions.cpp.
◆ getExtraParameters()
|
overridevirtual |
Implements covariance_functions::CovFunc.
Definition at line 85 of file covariance_functions.cpp.
◆ getParameterCount()
|
overridevirtual |
Returns the number of hyper-parameters.
Implements covariance_functions::CovFunc.
Definition at line 90 of file covariance_functions.cpp.
◆ getParameters()
|
overridevirtual |
Returns the hyper-parameters.
Implements covariance_functions::CovFunc.
Definition at line 80 of file covariance_functions.cpp.
◆ setExtraParameters()
|
overridevirtual |
Implements covariance_functions::CovFunc.
Definition at line 75 of file covariance_functions.cpp.
◆ setParameters()
|
overridevirtual |
Method to set the hyper-parameters.
Implements covariance_functions::CovFunc.
Definition at line 70 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.