Description Details Author(s) References Examples
The pgnorm-package includes routines to evaluate (cdf,pdf) and simulate the univariate p-generalized normal distribution with form parameter p, expectation mean and standard deviation σ. The pdf of this distribution is given by
f(x,p,mean,σ)=(σ_p/ σ) \, C_p \, \exp ≤ft( - ≤ft( \frac{σ_p}{σ } \right)^p \frac{≤ft| x-mean \right|^p}{p} \right) ,
where C_p=p^{1-1/p}/2/Γ(1/p) and σ_p^2=p^{2/p} \, Γ(3/p)/Γ(1/p), which becomes
f(x,p,mean,σ)=C_p \, \exp ≤ft( - \frac{≤ft| x \right|^p}{p} \right),
if σ=σ_p and mean=0. The random number generation can be realized with one of five different simulation methods including the p-generalized polar method, the p-generalized rejecting polar method, the Monty Python method, the Ziggurat method and the method of Nardon and Pianca. Additionally to the simulation of the p-generalized normal distribution, the related p-generalized uniform distribution on the p-generalized unit circle and the corresponding angular distribution can be simulated by using the functions "rpgunif" and "rpgangular", respectively.
Package: | pgnorm |
Type: | Package |
Version: | 2.0 |
Date: | 2015-11-23 |
License: | GPL (>= 2) |
LazyLoad: | yes |
Steve Kalke <steve.kalke@googlemail.com>
S. Kalke and W.-D. Richter (2013)."Simulation of the p-generalized Gaussian distribution." Journal of Statistical Computation and Simulation. Volume 83. Issue 4.
1 | y<-rpgnorm(10,3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.