Description Usage Arguments Details Value Examples
Takes two samples from the uniform distribution on the interval [0,1] and maps them to two standard, normally distributed samples.
1 | boxMuller(n = 1)
|
n |
The number of samples to be returned. |
Uses the following equations to generate the two standard, normally distributed samples:
X1=√{−2log(U_1)}cos(2π U_2)
X2=√{−2log(U_1)}sin(2π U_2)
A vector of samples from the standard normal distribution.
1 | boxMuller(500)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.