Description Usage Arguments Details Value Note Author(s) References See Also Examples
The function rpgm.rt uses rpgm.rnorm
in order to simulate student random variables faster than rt
.
1 |
n |
integer, number of simulations. |
df |
double, degrees of freedom (> 0, maybe non-integer). |
If df = 1
, the distribition if the Cauchy one. The mean exists when df > 1
and the variance when df > 2
.
A vector of i.i.d. student random variables.
For a big number of simulations, it is approximately 1.5 times faster than the usual rt
.
Nicolas Baradel - PGM Solutions
https://en.wikipedia.org/wiki/Ziggurat_algorithm
http://pgm-solutions.com/packages
1 | rpgm.rt(5, 4)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.