
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.
# S3 method for lgcpPredict
expectation(obj, fun, maxit = NULL, ...)
an object of class lgcpPredict
a function accepting a single argument that returns a numeric vector, matrix or array object
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
A Monte Carlo Average is computed as:
lgcpPredict
).