rpert: rpert

Description Usage Arguments Details Value Examples

View source: R/distribution.R

Description

Sample a pert distribution

Usage

1
rpert(n, x.min, x.max, x.mode, lambda = 4)

Arguments

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

Details

Returns samples from a pert distribution

Value

a numeric vector of length n

Examples

1
2
3
4
5
6
## 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

freedom documentation built on Sept. 8, 2020, 5:06 p.m.