mtalg.random.poisson

poisson(lam: Number = 1.0, size: int | tuple | None = None) ndarray | Number[source]

Draw from a poisson distribution.

Parameters:
  • lam – Expected number of events occurring in a fixed-time interval, must be >= 0.

  • size – Output shape.

Returns:

numpy.ndarray or scalar.