cdfexp | 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 |
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).
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.