Returns an TRIANGULAR distribution object that produce random numbers
from a triangular distribution using the rtriang
function
Usage
new_TRIANGULAR(p_min, p_max, p_mode, p_dimnames = "rvar")
Arguments
- p_min
A numeric that represents the lower limit
- p_max
A numeric that represents the upper limit
- p_mode
A numeric that represents the mode
- p_dimnames
A character that represents the name of the dimension
Value
An object of class DISTRIBUTION
, TRIANGULAR
Examples
myDistr <- new_TRIANGULAR(-1,1,0)
myDistr$rfunc(10)
#> rvar
#> 1 0.3280044
#> 2 -0.2851795
#> 3 0.4051558
#> 4 0.3846745
#> 5 -0.2390348
#> 6 0.4649872
#> 7 0.4261622
#> 8 0.3723790
#> 9 0.2476544
#> 10 0.0596358