powered by
Sample a pert distribution
rpert(n, x.min, x.max, x.mode, lambda = 4)
number of samples
The minimum value in the sample
The maximum value in the sample
The mode of the sample
lambda
a numeric vector of length n
Returns samples from a pert distribution
# NOT RUN { ## 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) ## Generate a # }
Run the code above in your browser using DataLab