Description Usage Arguments Value Examples
Parametric Rejection Sampling
1 2 | rej_sample_from_dist(distribution, param_list, type = "MC", lower = -Inf,
upper = Inf)
|
distribution |
- name of distribution from which to sample |
param_list |
list or vector of parameters for distribution |
type |
"MC" for Monte Carlo or "LH" for Latin Hypercube |
lower |
lower bound for samples |
upper |
upper bound for samples |
function taking int > 0 returning samples from specified distribution with parameters with bounds
1 2 | rej_sample_from_dist("normal", list(mean = 0, sd = 1))(10)
rej_sample_from_dist("normal", type = "LH", c(0,1), lower = -1, upper = 1)(10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.