earthkit.meteo.stats.array.fit_gumbel

earthkit.meteo.stats.array.fit_gumbel(sample, dim=0, **kwargs)

Gumbel distribution with parameters fitted to a sample of values.

Warning

Experimental API. This function may change or be removed without notice.

Results derived from the fitted distribution will only be meaningful if it is representative of the sample statistics.

Parameters:
  • sample (numpy.ndarray) – Sample values.

  • dim (int, optional) – Dimension index along which to compute the distribution parameters.

  • **kwargs (dict[str,Any]) – Keyword arguments forwarded to the distribution constructor.

Returns:

Fitting over a dimension of a multi-dimensional sample array, the outcome is a collection of (scalar-valued) distributions.

Return type:

GumbelDistribution