[rrd-users] Re: moving averages?
Serge Maandag
serge.maandag at staff.zeelandnet.nl
Fri Apr 4 15:20:01 MEST 2003
I haven't used the PREV function yet, but I imagine you could do
something like this:
DEF:val=....
CDEF:avg=val,PREV,+,2,/
to make a moving average of the last 2 samples.
Perhaps you can say PREV(<no of steps back>) ?
Than you could do:
avg=val,PREV(1),+,PREV(2),PREV(3),+,.....,60,/
but as I mentioned: I never looked at it.
serge.
-----Original Message-----
From: Eduardo Diaz Comellas [mailto:ediaz at ultreia.es]
Sent: Thursday, April 03, 2003 11:13 PM
To: rrd-users at list.ee.ethz.ch
Subject: [rrd-users] moving averages?
Hi!
I've been searching the way of doing a moving average with rrdtool. Is
there any simple way of doing this? I need the moving average of the
last 60 time steps and have it graphed beneath the "real time" values...
I've seen the PREV operator, but I can't imagine how to use it to get
the moving average of the last 60 time steps... :-(
Regards.
--
Eduardo Diaz Comellas <ediaz at ultreia.es>
Ultreia Comunicaciones S.L.
--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the rrd-users
mailing list