rpert {freedom}R Documentation

rpert

Description

Sample a pert distribution

Usage

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

## 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

[Package freedom version 1.0.1 Index]