Learn R Programming

distr6 (version 1.5.2)

cdf: Cumulative Distribution Function

Description

See Distribution$cdf

Usage

cdf(object, ..., lower.tail = TRUE, log.p = FALSE, simplify = TRUE, data = NULL)

Arguments

object
...

(numeric()) Points to evaluate the cumulative distribution function of the distribution. Arguments do not need to be named. The length of each argument corresponds to the number of points to evaluate, the number of arguments corresponds to the number of variables in the distribution. See examples.

lower.tail

logical(1) If TRUE (default), probabilities are X <= x, otherwise, X > x.

log.p

logical(1) If TRUE returns log-cdf. Default is FALSE.

simplify

logical(1) If TRUE (default) simplifies the pdf if possible to a numeric, otherwise returns a data.table::data.table.

data

array Alternative method to specify points to evaluate. If univariate then rows correspond with number of points to evaluate and columns correspond with number of variables to evaluate. In the special case of VectorDistributions of multivariate distributions, then the third dimension corresponds to the distribution in the vector to evaluate.

Value

Cdf evaluated at given points as either a numeric if simplify is TRUE or as a data.table::data.table.