Closed TPolzer closed 7 years ago
Well that is not a typical moving average that uses a fixed amount of samples. Instead it uses a time frame/window that slides over the time series and hence the amount of samples within a time frame varies. I agree that we should clearly point that out and we should enrich the the documentation. Furthermore we should provide a simple moving average that uses a fixed (user-defined) amount of samples.
It doesn't slide, it jumps. So for example, for 1000 (evenly spaced) standard normal distributed points and a window size of 80, this results in a data sequence like this:
Why would I want that?
I looked into the code and you are right. Thanks for reporting this bug. Just implemented a corrected version.
The documentation says:
That is not a moving average (and it's jumpy).