|
CMP++: Uncertainty Quantification & Bayesian Calibration
|
Represents a constant mean function. More...
#include <mean++.h>


Public Member Functions | |
| Constant (const Constant &)=default | |
| Constant (Constant &&)=default | |
| Constant & | operator= (const Constant &)=default |
| Constant & | operator= (Constant &&)=default |
| Constant (const size_t &c) | |
| Constructs a Constant mean function using the hyperparameter at index c. | |
| double | eval (const Eigen::VectorXd &x, const Eigen::VectorXd &par) const |
| Evaluates the constant mean. | |
| double | evalGradient (const Eigen::VectorXd &x, const Eigen::VectorXd &log_par, const size_t &i) const |
| Evaluates the partial derivative of the constant mean function. | |
| double | evalHessian (const Eigen::VectorXd &x, const Eigen::VectorXd &log_par, const size_t &i, const size_t &j) const |
| Evaluates the second-order partial derivative (Hessian) of the constant mean function. | |
Public Member Functions inherited from cmp::mean::Mean | |
| virtual | ~Mean ()=default |
Static Public Member Functions | |
| static std::shared_ptr< Mean > | make (const size_t &c) |
| Factory method for creating a Constant mean function. | |
Private Attributes | |
| size_t | index_ |
| Hyperparameter index of the constant value. | |
Represents a constant mean function.
Mathematical Formulation The mean function returns a constant value from the hyperparameters:
\[ m(\mathbf{x}) = \theta_{\text{index}} \]
|
default |
|
default |
|
inline |
Constructs a Constant mean function using the hyperparameter at index c.
|
inlinevirtual |
Evaluates the constant mean.
Implements cmp::mean::Mean.
|
inlinevirtual |
Evaluates the partial derivative of the constant mean function.
Implements cmp::mean::Mean.
|
inlinevirtual |
Evaluates the second-order partial derivative (Hessian) of the constant mean function.
Implements cmp::mean::Mean.
|
inlinestatic |
Factory method for creating a Constant mean function.
|
private |
Hyperparameter index of the constant value.