<< rf Random Numbers rgeom >>

Stixbox >> Stixbox > Random Numbers > rgamma

rgamma

Random numbers from the gamma distribution

Calling Sequence

x = rgamma(n,a [,s])

Parameters

n

positive integer or a vector [lig,col] of integers

a,s

positive reals.

x

n-vector or a n-matrix of random numbers chosen from Gamma distribution with parameter a

Description

Random numbers from the gamma distribution (inversion method) The gamma density function with parameter a is :

x --> (s^a)*x.^(a-1)exp(-s*x)./Gamma(a)1_{x>=0}
<< rf Random Numbers rgeom >>