|
CMP++: Uncertainty Quantification & Bayesian Calibration
|
Represents an Inverse covariance function. More...
#include <covariance.h>


Public Member Functions | |
| Inverse (const Inverse &)=default | |
| Inverse (Inverse &&)=default | |
| Inverse & | operator= (const Inverse &)=default |
| Inverse & | operator= (Inverse &&)=default |
| Inverse (const int &indexX=-1) | |
| Constructs an Inverse covariance function. | |
| double | eval (const Eigen::VectorXd &x1, const Eigen::VectorXd &x2, const Eigen::VectorXd &par) const |
| Evaluates the Inverse kernel. | |
| double | evalGradient (const Eigen::VectorXd &x1, const Eigen::VectorXd &x2, const Eigen::VectorXd &par, const size_t &i) const |
| Evaluates the partial derivative of the Inverse kernel. | |
| double | evalHessian (const Eigen::VectorXd &x1, const Eigen::VectorXd &x2, const Eigen::VectorXd &par, const size_t &i, const size_t &j) const |
| Evaluates the second-order partial derivative of the Inverse kernel. | |
Public Member Functions inherited from cmp::covariance::Covariance | |
| virtual | ~Covariance ()=default |
Static Public Member Functions | |
| static std::shared_ptr< Covariance > | make (const int &i) |
| Factory method for creating an inverse covariance. | |
Private Attributes | |
| int | indexX_ |
| Coordinate index to project (-1 for full vector dot product). | |
Represents an Inverse covariance function.
Mathematical Formulation If indexX_ is -1, computes:
\[ k_{\text{inv}}(\mathbf{x}_1, \mathbf{x}_2) = \frac{1}{\mathbf{x}_1^T \mathbf{x}_2 + 1} \]
Otherwise, evaluates only for the coordinate at indexX_:
\[ k_{\text{inv}}(\mathbf{x}_1, \mathbf{x}_2) = \frac{1}{x_{1,\text{index}} \times x_{2,\text{index}} + 1} \]
|
default |
|
default |
|
inline |
Constructs an Inverse covariance function.
| indexX | Dimension index to evaluate, or -1 for the full dot product. |
|
inlinevirtual |
Evaluates the Inverse kernel.
Implements cmp::covariance::Covariance.
|
inlinevirtual |
Evaluates the partial derivative of the Inverse kernel.
Implements cmp::covariance::Covariance.
|
inlinevirtual |
Evaluates the second-order partial derivative of the Inverse kernel.
Implements cmp::covariance::Covariance.
|
inlinestatic |
Factory method for creating an inverse covariance.
|
private |
Coordinate index to project (-1 for full vector dot product).