Should support moving averages aggregate function
Should be able to calculate moving averages of different types. Simple, weighted, exponential, etc. Need to come up with specific syntax and stuff, but for now there's more reading here http://en.wikipedia.org/wiki/Moving_average
:+1: EMA functions would be great!
Comments from #396 (which is a duplicate of this issue)
It would be great to have Influx calculate a (simple) moving average (or median, or maybe even percentiles).
For example: SELECT movingAverage(value, $window) FROM my_series, where $window could be a number of points/events, or a time interval, like 1s or 2m.
+1
+1
+1
+1
+1
+1
+1
+1
+1, really need this. Should we think about it together?
+1 but as a downsampled continuous queries
select mavg(val) from temp_series group by time(1h) into temp_series.mavg.1h
+1
+1
+1
+1
+1
+1
+1
I'd really like to have a go at this (and Holt winters forecasting). CQ seems the right way of doing these. They'd need access previous buckets/periods. Any tips would be appreciated. I'll start having a dig around