Learn R Programming

ADtools (version 0.5.4)

dexp0: The density of the exponential distribution

Description

The density of the exponential distribution

Usage

dexp0(x, rate = 1, log = FALSE)

Arguments

x

vector or matrix of quantiles. If x is a matrix, each row is taken to be a quantile.

rate

positive number; the rate parameter.

log

logical; if TRUE, returns the log value.

Examples

Run this code
# NOT RUN {
n <- 10
x <- rexp0(n, rate = 3)
dexp0(x, rate = 3)

# }

Run the code above in your browser using DataLab