cdfexp {lmom} | R Documentation |
Exponential distribution
Description
Distribution function and quantile function of the exponential distribution.
Usage
cdfexp(x, para = c(0, 1))
quaexp(f, para = c(0, 1))
Arguments
x |
Vector of quantiles. |
f |
Vector of probabilities. |
para |
Numeric vector containing the parameters of the distribution,
in the order |
Details
The exponential distribution with parameters
\xi
(lower bound) and \alpha
(mean)
has distribution function
F(x)=1-\exp\lbrace-(x-\xi)/\alpha\rbrace
for x\ge0
, and quantile function
x(F)=\xi-\alpha\log(1-F).
Value
cdfexp
gives the distribution function;
quaexp
gives the quantile function.
Note
The functions expect the distribution parameters in a vector,
rather than as separate arguments as in the standard R functions
pexp
and qexp
.
See Also
pexp
for the standard R version of the exponential distribution.
cdfgam
for the gamma distribution,
cdfgpa
for the generalized Pareto distribution,
cdfkap
for the kappa distribution,
cdfpe3
for the Pearson type III distribution,
and cdfwak
for the Wakeby distribution,
all of which generalize the exponential distribution.
Examples
# Random sample from the exponential distribution
# with lower bound 0 and mean 3.
quaexp(runif(100), c(0,3))