Truncate probability distribution object
t = truncate(pd,lower,upper)
Create a default normal probability distribution object.
pd = makedist('Normal')
pd = NormalDistribution Normal distribution mu = 0 sigma = 1
Truncate the distribution to have a lower limit of -2 and an upper limit of 2.
t = truncate(pd,-2,2)
t = NormalDistribution Normal distribution mu = 0 sigma = 1 Truncated to the interval [-2, 2]
The probability distribution function of
t is 0 outside the truncation interval (-2,2).
lower— Lower truncation limit
Lower truncation limit, specified as a scalar value.
upper— Upper truncation limit
Upper truncation limit, specified as a scalar value.
t— Truncated distribution
Truncated distribution, returned as a probability distribution
object. The probability distribution function (pdf) of
0 outside the truncation interval. Inside the truncation interval,
the pdf of
t is equal to the pdf of
but divided by the probability assigned to that interval by