Description Usage Arguments Value Examples
Generate Random Distribution
1 2 |
n |
number of realizations |
mean |
mean |
sd |
standard deviation |
lower |
lower limit of the truncated distribution |
upper |
upper limit of the truncated distribution |
method |
sampling method, either "RND" or "LHS". Default = "RND" |
lhs |
vector of quatiles (obtained from LH sampling functions). Not required
if |
distro |
distribution |
seed |
integer serving as seed number, work only for the RND option |
an array with n random values for the given parameters
1 2 3 4 5 6 7 8 | ## Not run:
distribution_1 <- var_distro(100, 10, 4)
hist(distribution_1)
distribution_2 <- var_distro(100, 10, 4, "truncated normal", 7, 13, seed = 123)
hist(distribution_2)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.