# NOT RUN {
## ------------------------------------------------
## Method `TruncatedDistribution$new`
## ------------------------------------------------
TruncatedDistribution$new(
Binomial$new(prob = 0.5, size = 10),
lower = 2, upper = 4
)
# alternate constructor
truncate(Binomial$new(), lower = 2, upper = 4)
# }
Run the code above in your browser using DataLab