R/generic_dist.R
inv_cdf.RdGeneric method for obtaining the quantile (inverse cdf) of an object.
inv_cdf(x, ...)A function computing the quantile (inverse CDF).
x <- normal(0, 1)
Q <- inv_cdf(x)
Q(0.5) # 0 (median of standard normal)
#> [1] 0
Q(0.975) # approximately 1.96
#> [1] 1.959964