Description Usage Arguments Value Examples
This function evaluates integrals using a normalized important sampling method with a Gaussian distribution proposal
1 | importSamplingNorm(constr, mn, cv, numObs)
|
constr |
a function that describes the domain or constraint of the observations |
mn |
mean of the observations to be generated |
cv |
covariance matrix of the observations to be generated |
numObs |
number of observations to be generated |
value of integrals
1 2 | constr <- function(X, u1 = lower, u2 = upper) { X >= u1 & X <= u2 }
important_sampling_norm(constr, 1/2, 0.1, 100)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.