Return functions with density-like, distribution-like, or quantile-like
interfaces from a supplied density or distribution function.
PDF(.f, ...)
CDF(.f, lower = -Inf, ...)
Quantile(cdf, interval = c(-100, 100))Function. Density function used by PDF() or integrated by
CDF().
Additional arguments passed to .f.
Numeric. Lower integration bound used by CDF().
Function. Cumulative distribution function used by Quantile().
Numeric vector of length two. Search interval used by
Quantile() when solving for roots.
PDF() returns a function with arguments x and log.
CDF() returns a function with arguments x, lower.tail, and log.p.
Quantile() returns a function with arguments p, log.p, and
lower.tail.