The moving average is built only using the values in the past, so the earliest possible time for the maximum in the time series returned is after one window has passed.
Arguments
- x
An object of type
one_box
- window
The size of the moving window
The moving average is built only using the values in the past, so the earliest possible time for the maximum in the time series returned is after one window has passed.
An object of type one_box
The size of the moving window