exp_icdf | R Documentation |
exp_icdf
simulates values from the inverse CDF of the
exponential distribution.
exp_icdf(n, theta)
n |
Number of output exponential values |
theta |
Scale parameter |
This function uses the exponential distribution of the form
f(t)=\theta exp(-\theta t)
to get the inverse CDF
F^(-1)(u)=(-log(1-u))/\theta
where u
is a uniform random variable. It can be
implemented directly and is also called by the function
exp_memsim
.
Output is a value or a vector of values from the exponential distribution.
simdta <- exp_icdf(n = 10, theta = 0.05)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.