The probability density function (density()), cumulative distribution function (cdf()), and quantile function / inverse CDF (quantile()) of an rvar.

# S3 method for rvar
density(x, at, ...)

# S3 method for rvar
cdf(x, q, ...)

# S3 method for rvar
quantile(x, probs, ...)

Arguments

x

(rvar) An rvar object.

...

Additional arguments passed onto underlying methods:

q, at

(numeric vector) One or more quantiles.

probs

(numeric vector) One or more probabilities in [0,1].

Value

A vector of the same length as the input (q, at, or probs) containing values from the corresponding function of the given rvar.