toto.filters.moving_average¶
Run a moving average
Parameters¶
- input_arrayPanda Obj
The Panda dataframe.
- N-Points filterint,
Number of point to use.
- mode{‘valid’, ‘same’}, optional
- ‘same’:
Mode ‘same’ returns output of length
max(M, N). Boundary effects are still visible.- ‘valid’:
Mode ‘valid’ returns output of length
max(M, N) - min(M, N) + 1. The convolution product is only given for points where the signals overlap completely. Values outside the signal boundary have no effect.
Note¶
see <https://numpy.org/doc/stable/reference/generated/numpy.convolve.html>_