Description Usage Arguments Details Value See Also
gp_logPosterior
compute posterior density for GP model.
1 2 |
theta |
(vector) parameters for covariance function the first element is the mean value mu |
acv.model |
(name) name of the function to compute ACV(tau | theta) |
tau |
(matrix) N*N matrix of lags at which to compute ACF |
dat |
(matrix) an N * 3 matrix of data: 3 columns |
PDcheck |
(logical) use Matrix::nearPD to coerse the matrix |
chatter |
(integer) higher values give more run-time feedback |
logPrior |
(name) Name of the function returning the log Prior density. |
Calculate posterior density for a Gaussian Process (GP) model given some data (day) and functions for the AutoCovariance (ACV) of the GP, the log likelihood, and the log prior (both log densities).
Simply computes log(posterior) = log(likelihood) + log(prior), where log(likelihood) is a function of the data and a ACV (and its parameters), and log(prior) is a function of the ACV parameters only.
log posterior density (scalar)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.