X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=doc%2Frrdgraph_rpn.src;fp=doc%2Frrdgraph_rpn.src;h=4aad4777011246145786450b9f9b641f1d72a112;hp=ae1a91b80b62eaaaf374c8def1e336681c634619;hb=fcbf2878a231442f4b62ee95fca39e28f04fc8d2;hpb=0209ff81818995fcd2e2b7080c0ca504fa14d949 diff --git a/doc/rrdgraph_rpn.src b/doc/rrdgraph_rpn.src index ae1a91b..4aad477 100644 --- a/doc/rrdgraph_rpn.src +++ b/doc/rrdgraph_rpn.src @@ -108,7 +108,7 @@ Round down,up to the nearest integer Z<> -=item Ordering Operations +=item Set Operations B @@ -120,6 +120,30 @@ 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