mesmer.stats.smoothing.lowess#

mesmer.stats.smoothing.lowess(data, dim, *, frac, use_coords_as_x=False, it=0)#

LOWESS (Locally Weighted Scatterplot Smoothing) for xarray objects

Parameters:
  • data (xr.DataArray) – Data to smooth (y-values).

  • dim (str) – Dimension along which to smooth (x-dimension)

  • frac (float) – Between 0 and 1. The fraction of the data used when estimating each y-value.

  • use_coords_as_x (boolean, default: False) – If True uses data[dim] as x-values else uses np.arange(data[dim.size) (useful if dim are time coordinates).

  • it (int, default: 0) – The number of residual-based reweightings to perform.