Returns a function that computes quantiles of the Weibull distribution.

# S3 method for class 'weibull_dist'
inv_cdf(x, ...)

Arguments

x

A weibull_dist object.

...

Additional arguments (not used).

Value

A function function(p, lower.tail = TRUE, log.p = FALSE, ...) returning the quantile at probability p.

Examples

x <- weibull_dist(shape = 2, scale = 3)
q <- inv_cdf(x)
q(0.5)
#> [1] 2.497664
q(0.95)
#> [1] 5.192455