Description Usage Arguments Details Value Author(s) References See Also Examples
Generation of pseudo-random numbers from an exponential power distribution
with location parameter mu
, scale parameter sigmap
and shape parameter p
.
1 |
n |
Number of observations. |
mu |
Vector of location parameters. |
sigmap |
Vector of scale parameters. |
p |
Shape parameter. |
method |
If is set to the default method " |
If mu
, sigmap
or p
are not specified they assume the default values 0, 1 and 2,
respectively.
The exponential power distribution has density function
f(x) = 1/(2 p^(1/p) Gamma(1+1/p) sigmap) exp{-|x - mu|^p/(p sigmap^p)}
where mu is the location parameter, sigmap the scale parameter and p the shape parameter. When p=2 the exponential power distribution becomes the Normal Distribution, when p=1 the exponential power distribution becomes the Laplace Distribution, when p->infinity the exponential power distribution becomes the Uniform Distribution.
rnormp
gives a vector of n pseudo-random numbers from an exponential power distribution.
Angelo M. Mineo
Chiodi, M. (1986) Procedures for generating pseudo-random numbers from a normal distribution of order p (p>1), Statistica Applicata, 1, pp. 7-26.
Marsaglia, G. and Bray, T.A. (1964) A convenient method for generating normal variables, SIAM rev., 6, pp. 260-264.
Normal
for the Normal distribution, Uniform
for the Uniform distribution,
Special
for the Gamma function and .Random.seed
for the random number generation.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.