[rrd-users] Advanced Averaging w/ RPN

Chris Snell cjs+lists at aol.net
Mon Nov 12 20:51:57 MET 2001



Hi All,

I'm trying to average a bunch of values which may or may not contain NaN 
values.  If there are NaN's, I want to drop them from the average.  In 
other words, if we have:

   [  4  6  NaN  2 ]

we would drop the NaN and now we'd have:

   [  4  6  2 ]

and then we'd average those to get '4'.

I believe this would require two things not in RRDtool: the ability to 
drop a value from the stack if *UNKNOWN* and the ability to count the 
number of values on the stack.

Any of you RPN gurus know how to accomplish this?

thx,

Chris


--
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