numpy.random.gamma()

numpy.random.gamma

numpy.random.gamma(shape, scale=1.0, size=None)

Draw samples from a Gamma distribution.

Samples are drawn from a Gamma distribution with specified parameters, shape (sometimes designated “k”) and scale (sometimes designated “theta”), where both parameters are > 0.

Parameters:

shape : float or array_like of floats

The shape of the gamma distribution. Should be greater than zero.

scale : float or array_like of floats, optional

The scale of the gamma distribution. Should be greater than zero. Default is equal to 1.

size : int or tupl