mesmer.stats.YeoJohnsonTransformer.lambda_function#
- static YeoJohnsonTransformer.lambda_function(coeffs, local_yearly_T)#
function defining the covariate function to calculate lambda depending on the local yearly values. The actual function depends on the passed name.
- Parameters:
coeffs (ndarray of shape (n,)) – Coefficients for the covariate function.
local_yearly_T (ndarray of shape (n_years,)) – Yearly values of one gridcell and month used as predictor for lambda.
- Returns:
lambdas (ndarray of float of shape (n_years,)) – The parameters of the power transformation for each gridcell and month