Falls back to realize to materialize the distribution as an empirical_dist, then delegates to cdf.empirical_dist.

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

Arguments

x

An edist object.

...

Additional arguments forwarded to cdf.empirical_dist.

Value

A function computing the empirical CDF.

Examples

# \donttest{
set.seed(1)
z <- normal(0, 1) * exponential(1)
Fz <- cdf(z)
Fz(0)
#> [1] 0.5068
# }