influxdb icon indicating copy to clipboard operation
influxdb copied to clipboard

Should support moving averages aggregate function

Open pauldix opened this issue 13 years ago • 89 comments

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

pauldix avatar Nov 23 '13 17:11 pauldix

:+1: EMA functions would be great!

nichdiekuh avatar Jan 31 '14 12:01 nichdiekuh

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.

jvshahid avatar Apr 03 '14 16:04 jvshahid

+1

spatil avatar May 19 '14 09:05 spatil

+1

huhongbo avatar Jul 22 '14 09:07 huhongbo

+1

clkao avatar Aug 17 '14 06:08 clkao

+1

sahilthapar avatar Aug 18 '14 03:08 sahilthapar

+1

rmihael avatar Aug 19 '14 08:08 rmihael

+1

selbyk avatar Sep 19 '14 00:09 selbyk

+1

ybogdanov avatar Oct 16 '14 17:10 ybogdanov

+1

shaharke avatar Nov 24 '14 14:11 shaharke

+1, really need this. Should we think about it together?

smartynov avatar Nov 28 '14 22:11 smartynov

+1 but as a downsampled continuous queries

select mavg(val) from temp_series group by time(1h) into temp_series.mavg.1h

mchmarny avatar Dec 18 '14 11:12 mchmarny

+1

DarrenMowat avatar Dec 18 '14 20:12 DarrenMowat

+1

ajcurated avatar Jan 15 '15 10:01 ajcurated

+1

probepark avatar Jan 25 '15 06:01 probepark

+1

paaloeye avatar Mar 04 '15 04:03 paaloeye

+1

tbillet avatar Apr 02 '15 11:04 tbillet

+1

naneau avatar Apr 02 '15 19:04 naneau

+1

ebereketoglu avatar Apr 02 '15 20:04 ebereketoglu

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

tcolgate avatar Apr 12 '15 12:04 tcolgate