TITLE(Exponential @@ The Exponential Distribution)
USAGE(
dexp(x, rate=1)
pexp(q, rate=1)
qexp(p, rate=1)
rexp(n, rate=1)
)
ALIAS(dexp)
ALIAS(pexp)
ALIAS(qexp)
ALIAS(rexp)
ARGUMENTS(
ARG(x,q @@ vector of quantiles.)
ARG(p @@ vector of probabilities.)
ARG(n @@ number of observations to generate.)
ARG(rate @@ vector of rates.)
)
VALUE(
These functions provide information about the exponential
distribution with rate LANG(rate) (i.e. mean LANG(1/rate)).
LANG(dexp) gives the density,
LANG(pexp) gives the distribution function
LANG(qexp) gives the quantile function
and
LANG(rexp) generates random deviates.
PARA
The exponential distribution with rate EQN(greeklambda)
has density
DEQN(f(x) =
greeklambda SUP(e@@- greeklambda x)
@@ f(x) = lambda e^-( lambda x))
for EQN(x GE 0).
)
SEEALSO(
LANG(LINK(exp)).
)
EXAMPLES(
dexp(1) - exp(-1) #-> 0
r <- rexp(100)
all(abs(1 - dexp(1, r) / (r*exp(-r))) < 1e-14)
)
