mesmer.stats.YeoJohnsonTransformer.get_lambdas_from_covariates#
- YeoJohnsonTransformer.get_lambdas_from_covariates(lambda_coeffs, yearly_pred, *, time_dim='time', time_coords=None)#
function that relates fitted coefficients and the yearly predictor to the lambdas. See
lambda_function.- Parameters:
lambda_coeffs (
xr.DataArray) – The parameters of the power transformation for each month along “month”, with coefficients along “coeff” calculated usingfit_yeo_johnson_transform. Can have additional dimensions, like for example a gridcell or member dimension.yearly_pred (
xr.DataArray) – yearly values used as predictors for the lambdas, contains dims for time and possibly additional dims as for lambda_coeffs.time_dim (str, default: “time”) – Name of the time dimension.
time_coords (None |
xr.DataArray, default: None) – If passed will assign the time coords.
- Returns:
lambdas (
xr.DataArray) – The parameters of the power transformation for each month, year, and possibly additional dims.