Description Usage Arguments Value Note Author(s) Examples
Returns an TRUNCATED distribution object that limits the values that are
generated by the distribution to be in the limits p_min, p_max
1 | new_TRUNCATED(p_distribution, p_min = -Inf, p_max = Inf)
|
p_distribution |
An object of class DISTRIBUTION to truncate |
p_min |
A numeric that set the lower limit of the distribution |
p_max |
A numeric that set the upper limit of the distribution |
An object of class DISTRIBUTION
,
p_distribution$distribution
, TRUNCATED
The expected value of a truncated distribution could be very
different from the expected value of the unrestricted distribution. Be
careful as the oval
field is not changed and may not represent
any more the expected value of the distribution.
If the distribution is multidimensional, the limits will apply to all dimensions.
John J. Aponte
1 2 | myDistr <- new_TRUNCATED(p_distribution = new_NORMAL(0,1), p_min = -1, p_max = 1)
myDistr$rfunc(10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.