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:[EMAIL PROTECTED] Sent: Thursday, April 03, 2003 11:13 PM To: rrd-users@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 <[EMAIL PROTECTED]> Ultreia Comunicaciones S.L. -- Unsubscribe mailto:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi -- Unsubscribe mailto:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi