iarray.random.poisson#

iarray.random.poisson(shape: Sequence, lam: float, cfg: Optional[Config] = None, **kwargs) IArray#

Draw samples from a Poisson distribution.

The cfg and kwargs parameters are the same than in random_sample().

Parameters
  • shape (Sequence) – The shape of the array to be created.

  • lam (float) – Expectation of interval, must be >= 0.

Returns

The new array.

Return type

IArray container

See also

random_sample

References

np.random.poisson