powered by
Returns an TRIANGULAR distribution object that produce random numbers from a triangular distribution using the rtriang function
rtriang
new_TRIANGULAR(p_min, p_max, p_mode, p_dimnames = "rvar")
An object of class DISTRIBUTION, TRIANGULAR
DISTRIBUTION
TRIANGULAR
A numeric that represents the lower limit
A numeric that represents the upper limit
A numeric that represents the mode
A character that represents the name of the dimension
John J. Aponte
myDistr <- new_TRIANGULAR(-1,1,0) myDistr$rfunc(10)
Run the code above in your browser using DataLab