earthkit.meteo.stats.fit_gumbel

earthkit.meteo.stats.fit_gumbel(sample: ArrayLike, dim: int) earthkit.meteo.stats.array.extreme_values.GumbelDistribution
earthkit.meteo.stats.fit_gumbel(sample: xarray.DataArray, dim: str) earthkit.meteo.stats.array.extreme_values.GumbelDistribution

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

  • dim (str or int) – Dimension name (for xarray) or axis index (for array-like) over which to compute the parameters.

Returns: