This function requires data to have been dumped to disk: see ?dump2dir
and ?setoutput
. This function computes the
Monte Carlo Average of a function where data from a run of lgcpPredict
has been dumped to disk.
"expectation(obj,fun,maxit=NULL,...)"
an object of class lgcpPredictSpatialOnlyPlusParameters
a function with arguments 'Y', 'beta', 'eta', 'Z' and 'otherargs'. See vignette("Bayesian_lgcp") for an example
Not used in ordinary circumstances. Defines subset of samples over which to compute expectation. Expectation is computed using information from iterations 1:maxit, where 1 is the first non-burn in iteration dumped to disk.
additional arguments
the expectated value of that function