iarray.random.exponential#

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

Draw samples from an exponential distribution.

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

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

  • scale (float) – The scale parameter, \(\beta = 1/\lambda\). Must be non-negative.

Returns

The new array.

Return type

IArray container

See also

random_sample

References

np.random.exponential