glidertools.cleaning.rolling_window¶
-
glidertools.cleaning.
rolling_window
(var, func, window)¶ A rolling window function that is nan-resiliant
Parameters: - arr (array, dtype=float, shape=[n, ]) – array that you want to pass the rolling window over
- func (callable) – an aggregating function. e.g. mean, std, median
- window (int) – the size of the rolling window that will be applied
Returns: arr – the same as the input array, but the rolling window has been applied
Return type: array, dtype=float, shape=[n, ]