Draw a multivariate normal or lognormal joint
predictive_from_gaussian.Rdn_sims draws of a multivariate_normal() or multivariate_lognormal(),
one component per key. Simulation i draws only from stream i of
seed, so the result reproduces by seed on any number of threads; its
provenance records the model, its dimension, the seed and a hash of the
mean and covariance.
Examples
mvn <- multivariate_normal(c(100, 50), matrix(c(400, 120, 120, 100), 2))
pd <- predictive_from_gaussian(mvn, 20000, 1, keys = data.frame(line = c("auto", "property")))
mean(pd)
#> [1] 149.8658