windkit.weibull.fit_weibull_wasp_m1_m3_fgtm

windkit.weibull.fit_weibull_wasp_m1_m3_fgtm(m1, m3, freq_gt_mean, atol=1e-08)[source]

Fit weibull parameters from the first and third moments and the fraction of probability mass above the mean

Parameters:
Returns:

  • A (xarray.DataArray) – Weibull scale parameter

  • k (xarray.DataArray) – Weibull shape parameter

Notes

This function has the optional dependency ‘numba’. If numba is installed, the function will use a numba-compiled version of the algorithm which is much faster. If numba is not installed, the function will use a scipy-based root-finding algorithm and vectorization through np.vectorize which is much slower.