Description Usage Arguments Details Value Note Author(s) References See Also Examples
The function rpgm.rlnorm uses rpgm.rnorm
in order to simulate log-normal random variables faster than rlnorm
.
1 | rpgm.rlnorm(n, mean = 0, sd = 1)
|
n |
integer, number of simulations. |
mean |
double, the mean (or the vector of means) of the logarithm of the log-normal variable. |
sd |
double, the standard deviation (or the vector of standard deviations) of the logarithm of the log-normal variable. |
If mean
or sd
are not specified they assume the default values of 0 and 1, respectively.
A vector of i.i.d. log-normal random variables.
For a big number of simulations, it is in general two times faster than the usual rlnorm
.
Nicolas Baradel - PGM Solutions
https://en.wikipedia.org/wiki/Ziggurat_algorithm
http://pgm-solutions.com/packages
1 | rpgm.rlnorm(5)
|
[1] 8.469001 1.605017 2.424121 1.836935 1.071197
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.