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:
m1 (xarray.DataArray) – First moment / mean
m3 (xarray.DataArray) – Third moment / skewness
freq_gt_mean (xarray.DataArray) – Skewness term: frequency-mass that falls above the mean value
atol (float) – Absolute tolerance for root-finding algorithm
- 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.