rpert | R Documentation |
Sample a pert distribution
rpert(n, x.min, x.max, x.mode, lambda = 4)
n |
number of samples |
x.min |
The minimum value in the sample |
x.max |
The maximum value in the sample |
x.mode |
The mode of the sample |
lambda |
lambda |
Returns samples from a pert distribution
a numeric vector of length n
## Generate 10000 samples from a pert distribution with a minimum ## of 2, a max of 5, and a mode of 4. samples <- rpert(10000, 2, 5, 4) hist(samples)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.