xdem.spatialstats.infer_heteroscedasticity_from_stable

xdem.spatialstats.infer_heteroscedasticity_from_stable#

xdem.spatialstats.infer_heteroscedasticity_from_stable(dvalues, list_var, stable_mask=None, unstable_mask=None, list_var_names=None, spread_statistic=<function nmad>, list_var_bins=None, min_count=100, fac_spread_outliers=7)[source]#
Overloads:
  • dvalues (NDArrayf), list_var (list[NDArrayf | RasterType]), stable_mask (NDArrayf | Raster | VectorType | gpd.GeoDataFrame), unstable_mask (NDArrayf | Raster | VectorType | gpd.GeoDataFrame), list_var_names (list[str]), spread_statistic (Callable[[NDArrayf], np.floating[Any]]), list_var_bins (int | tuple[int, …] | tuple[NDArrayf] | None), min_count (int | None), fac_spread_outliers (float | None) → tuple[NDArrayf, pd.DataFrame, Callable[[tuple[NDArrayf, …]], NDArrayf]]

  • dvalues (RasterType), list_var (list[NDArrayf | RasterType]), stable_mask (NDArrayf | Raster | VectorType | gpd.GeoDataFrame), unstable_mask (NDArrayf | Raster | VectorType | gpd.GeoDataFrame), list_var_names (list[str]), spread_statistic (Callable[[NDArrayf], np.floating[Any]]), list_var_bins (int | tuple[int, …] | tuple[NDArrayf] | None), min_count (int | None), fac_spread_outliers (float | None) → tuple[RasterType, pd.DataFrame, Callable[[tuple[NDArrayf, …]], NDArrayf]]

Infer heteroscedasticity from differenced values on stable terrain and a list of explanatory variables.

This function returns an error map, a dataframe of spread values and the error function with explanatory variables. It is a convenience wrapper for estimate_model_heteroscedasticity to work on either Raster or array, compute the stable mask and return an error map.

If no stable or unstable mask is provided to mask in or out the values, all terrain is used.

Parameters:
Returns:

Inferred error map (array or Raster, same as input proxy values), Dataframe of binned spread statistic with explanatory variables, Error function with explanatory variables