Falls back to realize and delegates to inv_cdf.empirical_dist.

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

Arguments

x

An edist object.

...

Additional arguments forwarded to inv_cdf.empirical_dist.

Value

A function computing the empirical quantile function.

Examples

# \donttest{
set.seed(1)
z <- normal(0, 1) * exponential(1)
qz <- inv_cdf(z)
qz(0.5)
#> [1] -0.002285707
# }