R/poisson_dist.R
inv_cdf.poisson_dist.RdReturns a function that computes quantiles of the Poisson distribution.
# S3 method for class 'poisson_dist'
inv_cdf(x, ...)A function function(p, lower.tail = TRUE, log.p = FALSE, ...)
returning the quantile at probability p.
x <- poisson_dist(5)
q <- inv_cdf(x)
q(0.5)
#> [1] 5
q(0.95)
#> [1] 9