linopy.expressions.LinearExpression.rolling#
- LinearExpression.rolling(dim=None, min_periods=None, center=False, **window_kwargs)#
Rolling window object.
Docstring and arguments are borrowed from xarray.Dataset.rolling
- Parameters:
dim (
dict
, optional) – Mapping from the dimension name to create the rolling iterator along (e.g. time) to its moving window size.min_periods (
int
, default:None
) – Minimum number of observations in window required to have a value (otherwise result is NA). The default, None, is equivalent to setting min_periods equal to the size of the window.center (
bool
ormapping
, default:False
) – Set the labels at the center of the window.**window_kwargs (optional) – The keyword arguments form of
dim
. One of dim or window_kwargs must be provided.
- Returns:
linopy.expression.LinearExpressionRolling