5#ifndef GPR_GPCF_CONSTANT_H
6#define GPR_GPCF_CONSTANT_H
53 std::vector<FieldMatrixd> &DKff);
67 std::vector<FieldMatrixd> &DKff);
89 std::vector<FieldMatrixd> &DKff);
105 std::vector<FieldMatrixd> &DKff);
148 std::vector<FieldMatrixd> &DKff);
double getConstSigma2() const noexcept
void calculateGradOfCovMatrix(const Coord &x, Coord &x2, std::vector< FieldMatrixd > &DKff)
The function takes a matrix x of input vectors and returns DKff, the gradients of covariance matrix K...
void setParameters(const Eigen::VectorXd &w)
Set parameters of this covariance function using the provided vector.
double calculateLogPrior()
Evaluate the log prior of covariance function parameters.
Eigen::VectorXd combineParameters()
Combine parameters of the covariance function into one Eigen vector.
FieldMatrixd calculateLogPriorGradient()
Evaluate gradient of the log prior with respect to the parameters.
void ginput2(const Coord &x, Coord &x2, FieldMatrixIdx &dims, std::vector< FieldMatrixd > &DKff)
Evaluate gradient of covariance function with respect to both input variables x and x2 (in same dimen...
void calculateGradOfCovMatrixWithDerivatives2(const Coord &x, Coord &x2, FieldMatrixIdx &dims1, FieldMatrixIdx &dims2, std::vector< FieldMatrixd > &DKff)
Evaluate gradient of covariance function, of which has been taken partial derivatives with respect to...
void calculateCovarianceMatrix(const Coord &x, Coord &x2, FieldMatrixd &C)
Evaluate covariance matrix between two input vectors.
void setConstSigma2(const double _constSigma2)
Set the constSigma2 value.
void ginput3(const Coord &x, Coord &x2, FieldMatrixIdx &dims1, FieldMatrixIdx &dims2, std::vector< FieldMatrixd > &DKff)
Evaluate gradient of covariance function with respect to both input variables x and x2 (in different ...
void ginput4(const Coord &x, Coord &x2, FieldMatrixIdx &dims, std::vector< FieldMatrixd > &DKff)
Evaluate gradient of covariance function with respect to x. Simplified and faster version of constant...
void calculateGradOfCovMatrixWithDerivatives(const Coord &x, Coord &x2, FieldMatrixIdx &dims, std::vector< FieldMatrixd > &DKff)
Evaluate gradient of covariance function, of which has been taken partial derivative with respect to ...
Gaussian-process regression, kernels, priors, and the searches that run on the surrogate.
Eigen::Matrix< Index_t, EigenDynamic, EigenDynamic, FieldMatrixStorage > FieldMatrixIdx
Eigen::Matrix< double, EigenDynamic, EigenDynamic, FieldMatrixStorage > FieldMatrixd