xdem.spatialstats.two_step_standardization

xdem.spatialstats.two_step_standardization#

xdem.spatialstats.two_step_standardization(dvalues, list_var, unscaled_error_fun, spread_statistic=<function nmad>, fac_spread_outliers=7)[source]#

Standardize the proxy differenced values using the modelled heteroscedasticity, re-scaled to the spread statistic, and generate the final standardization function.

Parameters:
Return type:

tuple[ndarray[tuple[int, ...], dtype[floating[Any]]], Callable[[tuple[Union[Buffer, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[bool | int | float | complex | str | bytes]], ...]], ndarray[tuple[int, ...], dtype[floating[Any]]]]]

Returns:

Standardized values array of size (N,), Function to destandardize