evaluate_logpostpdf: Evaluate posterior density function

View source: R/inference_optimhelp.R

evaluate_logpostpdfR Documentation

Evaluate posterior density function

Description

Evaluate the posterior density function for a given vector of independent variables.

Usage

evaluate_logpostpdf(map, zprior, U, obs, zref)

Arguments

map

Mapping object. Usually a compound map, see create_compound_map

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 zprior. An NA value in this vector means that the corresponding variable was not observed.

zref

Vector with values of independent variables used as reference vector in Taylor expansion. The posterior pdf is also evaluated exactly at this point.

Value

Return a list with the following elements:

val Value of the posterior probability density function evaluated at zref
jac Gradient of the posteroir probability density function evaluated at zref

gschnabel/nucdataBaynet documentation built on Feb. 3, 2023, 4:13 a.m.