X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=doc%2Frrdgraph_rpn.src;h=4aad4777011246145786450b9f9b641f1d72a112;hp=b765f9abc8ee86802b3f5c7835e75ccfbbe957bd;hb=fcbf2878a231442f4b62ee95fca39e28f04fc8d2;hpb=d828f3eccac8dbad7bfc14812e406377669baaa4 diff --git a/doc/rrdgraph_rpn.src b/doc/rrdgraph_rpn.src index b765f9a..4aad477 100644 --- a/doc/rrdgraph_rpn.src +++ b/doc/rrdgraph_rpn.src @@ -94,9 +94,9 @@ B<+, -, *, /, %> Add, subtract, multiply, divide, modulo -B +B -Sine, cosine (input in radians), log, exp (natural logarithm) +Sine, cosine (input in radians), log, exp (natural logarithm), square root B @@ -108,6 +108,42 @@ Round down,up to the nearest integer Z<> +=item Set Operations + +B + +Pop one element from the stack. This is the I of items to be sorted +(or reversed). The top I of the remaining elements are then sorted +(or reversed) in place on the stack. + +Example: C will +compute the average of the values v1..v6 after removing the smallest and +largest. + +B + +Create a "sliding window" average of another data series. + +Usage: +CDEF:smoothed=x,1800,TREND + +This will create a half-hour (1800 second) sliding window average of x. The +average is essentially computed as shown here: + + +---!---!---!---!---!---!---!---!---> + now + delay t0 + <---------------> + delay t1 + <---------------> + delay t2 + <---------------> + + + Value at sample (t0) will be the average between (t0-delay) and (t0) + Value at sample (t1) will be the average between (t1-delay) and (t1) + Value at sample (t2) will be the average between (t2-delay) and (t2) + =item Special values B