HierarchicalEmulator | R Documentation |
Creates a univariate emulator with hierarchical structure.
This object does not differ extensively from the standard Emulator
object, so
most of the functionality will not be listed here: the main difference is that
it allows for the variance structure of the emulator to be modified by a higher
order object. The typical usage is to create a variance emulator, whose predictions
inform the behaviour of a mean emulator with regard to a stochastic process.
HierarchicalEmulator$new(basis_f, beta, u, ranges, ...)
For details of shared arguments, see Emulator
.
s_diag
The function that modifies the structure of the Bayes Linear adjustment.
samples
A numeric vector that indicates how many replicates each of the training
points has.
em_type
Whether the emulator is emulating a mean surface or a variance surface.
See Emulator
: the constructor structure is the same save for the
new arguments discussed above.
get_exp(x, samps = NULL)
Similar in form to the normal Emulator method; the
samps
argument allows the estimation of summary statistics derived from
multiple realisations.
get_cov(x, xp = NULL, full = FALSE, samps = NULL)
Differences here are in
line with those described in get_exp
.
Identical to those of Emulator
: the one internal difference is that
adjust
returns a HierarchicalEmulator rather than a standard one.
Goldstein & Vernon (2016), in preparation
h_em <- emulator_from_data(BirthDeath$training, c('Y'),
list(lambda = c(0, 0.08), mu = c(0.04, 0.13)), emulator_type = "variance")
names(h_em) # c("expectation', 'variance')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.