mtalg.random.exponential

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

Draw from an exponential distribution.

Parameters:
  • scale – The scale parameter, β = 1/λ Must be non-negative.

  • size – Output shape.

Returns:

numpy.ndarray or scalar.