Learn R Programming

algebraic.dist (version 0.9.1)

cdf.edist: CDF for expression distributions.

Description

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

Usage

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

Value

A function computing the empirical CDF.

Arguments

x

An edist object.

...

Additional arguments forwarded to cdf.empirical_dist.

Examples

Run this code
# \donttest{
set.seed(1)
z <- normal(0, 1) * exponential(1)
Fz <- cdf(z)
Fz(0)
# }

Run the code above in your browser using DataLab