Skip to content

poissrnd

Pseudo random number of a Poisson distribution

poissrnd(mu)

  • It returns pseudo-random numbers of Poisson distributions with mean values given by mu.
  • mu should contains non-negative numbers.
  • The output has the same size as mu.

poissrnd(mu,m)

  • It returns pseudo-random numbers of exponential distributions with means given by mu.
  • m should be a positive integer.
  • The output is an m-by-m matrix.
  • mu should be a scalar or an m-by-m matrix.
  • mu should contains non-negative numbers.

poissrnd(mu,s1,s2,...,sn)

  • It returns pseudo-random numbers of Poisson distributions with means given by mu.
  • s1, s2, ... sn should be non-negative integers.
  • The output has the size [s1,s2,...,sn].
  • mu should be a scalar or an array of size [s1,s2,...,sn].
  • mu should contains non-negative numbers.

poissrnd(mu,sizeVec)

  • It returns pseudo-random numbers of Poisson distributions with means given by mu.
  • The output has the size specified by the vector sizeVec.
  • mu should be a scalar or an array of size sizeVec.
  • mu should contains non-negative numbers.