Returns a function that computes quantiles of the uniform distribution.

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

Arguments

x

A uniform_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 <- uniform_dist(0, 10)
q <- inv_cdf(x)
q(0.5)
#> [1] 5
q(0.9)
#> [1] 9