Loading...
Searching...
No Matches
ObservationLikelihood.cpp File Reference
#include "ObservationLikelihood.h"
#include <cmath>
#include <stdexcept>

Go to the source code of this file.

Namespaces

namespace  gpr
 Gaussian-process regression, kernels, priors, and the searches that run on the surrogate.

Functions

Eigen::VectorXd gpr::findFMode (const EigenMatrix &K, const Eigen::VectorXd &y, const ObservationLikelihood &ol, int max_iter=30, double tol=1e-8)
 Posterior mode f_mode = argmax_f [log p(y|f) + log N(f | 0, K)] via the Rasmussen-Williams safe Newton recursion (Algo 3.1).
double gpr::laplaceMarginalLogLik (const EigenMatrix &K, const Eigen::VectorXd &y, const Eigen::VectorXd &f_mode, const ObservationLikelihood &ol)
 Laplace approximation to log p(y | theta) given prior K and the converged posterior mode f_mode (R&W eq. 3.32):