apply_tolerance {EpiNow2} | R Documentation |
This removes any part of the tail of the nonparametric distributions in the
<dist_spec> where the probability mass is below the threshold level.
apply_tolerance(x, tolerance)
x |
A |
tolerance |
Numeric; the desired tolerance level. |
A <dist_spec>
where probability masses below the threshold level
have been removed
dist <- discretise(Gamma(mean = 5, sd = 1, max = 20))
apply_tolerance(dist, 0.01)