powered by
Returns an TRUNCATED distribution object that limits the values that are generated by the distribution to be in the limits p_min, p_max
p_min, p_max
new_TRUNCATED(p_distribution, p_min = -Inf, p_max = Inf)
An object of class DISTRIBUTION,
DISTRIBUTION
p_distribution$distribution, TRUNCATED
p_distribution$distribution
TRUNCATED
An object of class DISTRIBUTION to truncate
A numeric that set the lower limit of the distribution
A numeric that set the upper limit of the distribution
John J. Aponte
myDistr <- new_TRUNCATED(p_distribution = new_NORMAL(0,1), p_min = -1, p_max = 1) myDistr$rfunc(10)
Run the code above in your browser using DataLab