IRIS Toolbox Reference Manual

## eval

Evaluate posterior density at specified points

#### Syntax

    [X,L,PP,SrfP,FrfP] = eval(Pos)
    [X,L,PP,SrfP,FrfP] = eval(Pos,P)

#### Input arguments

- `Pos` [ poster ] - Posterior object returned by the `model/estimate` function.

- `P` [ struct ] - Struct with parameter values at which the posterior density will be evaluated; if `P` is not specified, the posterior density is evaluated at the point of the estimated mode.

#### Output arguments

- `X` [ numeric ] - The value of log posterior density evaluated at `P`; N.B. the returned value is log posterior, and not minus log posterior.

- `L` [ numeric ] - Contribution of data likelihood to log posterior.

- `PP` [ numeric ] - Contribution of parameter priors to log posterior.

- `SrfP` [ numeric ] - Contribution of shock response function priors to log posterior.

- `FrfP` [ numeric ] - Contribution of frequency response function priors to log posterior.

#### Description

The total log posterior consists, in general, of the four contributions listed above:

    X = L + PP + SrfP + FrfP.

#### Example

IRIS Toolbox. Copyright © 2007—2013 Jaromir Benes.