rndgam#

Purpose#

Computes pseudo-random numbers with gamma distribution.

Note

rndgam() is deprecated and should be replaced with rndGamma().

Format#

x = rndgam(r, c, alpha)#
Parameters:
  • r (scalar) – number of rows of resulting matrix.

  • c (scalar) – number of columns of resulting matrix.

  • alpha (MxN matrix) – ExE conformable with r x c resulting matrix, shape parameters for gamma distribution.

Returns:

x (r x c matrix) – gamma distributed pseudo-random numbers.

Remarks#

The properties of the pseudo-random numbers in x are:

\[\begin{split}E(x) = \alpha\\ Var(x) = \alpha\\ x > 0\\ \alpha > 0\end{split}\]

Source#

random.src

See also

Functions rndGamma()