[rrd-users] Advanced Averaging w/ RPN
cjs+lists at aol.net
Mon Nov 12 20:51:57 MET 2001
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?
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
More information about the rrd-users