| cdfexp {lmom} | R Documentation |
Distribution function and quantile function of the exponential distribution.
cdfexp(x, para = c(0, 1)) quaexp(f, para = c(0, 1))
x |
Vector of quantiles. |
f |
Vector of probabilities. |
para |
Numeric vector containing the parameters of the distribution, in the order xi, alpha (location, scale). |
The exponential distribution with parameters xi (lower bound) and alpha (mean) has distribution function
F(x) = 1 - exp(-(x-xi)/alpha)
for x >= 0, and quantile function
x(F) = xi - alpha log(1-F) .
cdfexp gives the distribution function;
quaexp gives the quantile function.
The functions expect the distribution parameters in a vector,
rather than as separate arguments as in the standard R functions
pexp and qexp.
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.
# Random sample from the exponential distribution # with lower bound 0 and mean 3. quaexp(runif(100), c(0,3))