Returns a function that computes quantiles of the log-normal distribution.

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

Arguments

x

A lognormal object.

...

Additional arguments (not used).

Value

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

Examples

x <- lognormal(0, 1)
q <- inv_cdf(x)
q(0.5)
#> [1] 1
q(0.95)
#> [1] 5.180252