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