mtalg.random.gumbel

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

Draw from a Gumbel distribution.

Parameters:
  • loc – The location of the mode of the distribution. Default is 0.

  • scale – The scale parameter of the distribution. Default is 1. Must be non-negative.

  • size – Output shape.

Returns:

numpy.ndarray or scalar.