earthkit.meteo.stats.xarray.fit_gumbel

earthkit.meteo.stats.xarray.fit_gumbel(sample, dim)

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 (xarray.DataArray) – Sample values.

  • dim (str) – Dimension name over which to compute the parameters.

Returns:

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

Return type:

GumbelDistribution