Description Usage Arguments Value Note Author(s) See Also Examples
The function rgpd generates Generalized Pareto Random Variables.
1 |
n |
integer, number of simulations. |
xi |
double, the shape. |
mu |
double, the location. |
sigma |
double, the scale. |
A vector of i.i.d. Generalized Pareto random variables.
For xi != 0, the cumulative distribution function is:
F(x) = 1-(1+xi*(x-mu)/sigma)^(-1/xi)
for x >= mu when xi > 0 and mu <= x <= mu - sigma/xi when xi < 0.
If xi = 0, (X - mu)/sigma follows a Exponential distribution of parameter 1.
Nicolas Baradel - PGM Solutions
http://pgm-solutions.com/packages
1 | x <- rgpd(5, 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.