moving_window
moving_window(
data: ndarray ,
window: int ,
operation: str ,
axis: int = 0,
engine: Literal[‘auto’, ‘scipy’, ‘bottleneck’] = auto,
**kwargs ,
)-> ‘np.ndarray’
Generic moving window operation with automatic engine selection.
Parameters
Parameter | Description |
---|---|
data : array-like | Input data |
window : int | Window size |
operation : str | Operation name (“median”, “mean”, “std”, “sum”, “min”, “max”) |
axis : int, default 0 | Axis along which to operate |
engine : {“auto”, “scipy”, “bottleneck”}, default “auto” | Engine to use |
**kwargs | Additional arguments passed to the engine function |
Returns
np.ndarray Result of moving window operation