Learn R Programming

algebraic.dist (version 0.9.1)

density.edist: Density for expression distributions.

Description

Falls back to realize and delegates to density.empirical_dist.

Usage

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

Value

A function computing the empirical density (PMF).

Arguments

x

An edist object.

...

Additional arguments forwarded to density.empirical_dist.

Examples

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

Run the code above in your browser using DataLab