View source: R/inference_optimhelp.R
generate_logpostpdf_funs | R Documentation |
Generate a list with two function to evaluate the posterior probability density function and its gradient. These functions can be used in optimization to find the posterior maximum.
generate_logpostpdf_funs(map, zprior, U, obs, zref)
map |
Mapping object. Usually a compound map, see |
zprior |
Vector of prior estimates of the independent variables (i.e., associated with nodes without parent nodes) |
U |
Prior covariance matrix of the independent variables |
obs |
Vector with observed values of dependent nodes. Must be of same
size as |
zref |
Vector with values of independent variables used as reference vector in Taylor expansion. The posterior pdf is also evaluated exactly at this point. |
Return a list with two functions:
fun(x) | Function that evaluates the posterior pdf at x |
jac(x) | Function that evaluates the gradient of the posterior pdf at x
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.