From: moli Date: Mon, 19 May 2014 08:53:13 +0000 (+0200) Subject: mods of #477 fixed POD formatting problems X-Git-Tag: v1.5.0-rc1~87^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F484%2Fhead;p=thirdparty%2Frrdtool-1.x.git mods of #477 fixed POD formatting problems in a code syntax and a command line example --- diff --git a/doc/rrdgraph_rpn.pod b/doc/rrdgraph_rpn.pod index fd1f3099..a116d5af 100644 --- a/doc/rrdgraph_rpn.pod +++ b/doc/rrdgraph_rpn.pod @@ -205,17 +205,17 @@ average of the remaining values. B Create a "sliding window" average/sigma/percentil of another data series, -that also shifts the data series by given amounts of of time as well +that also shifts the data series by given amounts of time as well Usage - explicit stating shifts: -CDEF:predict=,...,,n,,x,PREDICT -CDEF:sigma=,...,,n,,x,PREDICTSIGMA -CDEF:perc=,...,,n,,,x,PREDICTPERC +Cshift nE,...,Eshift 1E,n,EwindowE,x,PREDICT> +Cshift nE,...,Eshift 1E,n,EwindowE,x,PREDICTSIGMA> +Cshift nE,...,Eshift 1E,n,EwindowE,EpercentilE,x,PREDICTPERC> Usage - shifts defined as a base shift and a number of time this is applied -CDEF:predict=,-n,,x,PREDICT -CDEF:sigma=,-n,,x,PREDICTSIGMA -CDEF:sigma=,-n,,,x,PREDICTPERC +Cshift multiplierE,-n,EwindowE,x,PREDICT> +Cshift multiplierE,-n,EwindowE,x,PREDICTSIGMA> +Cshift multiplierE,-n,EwindowE,EpercentilE,x,PREDICTPERC> Example: CDEF:predict=172800,86400,2,1800,x,PREDICT @@ -273,21 +273,21 @@ Here an example, that will create a 10 day graph that also shows the prediction 3 days into the future with its uncertainty value (as defined by avg+-4*sigma) This also shows if the prediction is exceeded at a certain point. -rrdtool graph image.png --imgformat=PNG \ - --start=-7days --end=+3days --width=1000 --height=200 --alt-autoscale-max \ - DEF:value=value.rrd:value:AVERAGE:start=-14days \ - LINE1:value#ff0000:value \ - CDEF:predict=86400,-7,1800,value,PREDICT \ - CDEF:sigma=86400,-7,1800,value,PREDICTSIGMA \ - CDEF:upper=predict,sigma,3,*,+ \ - CDEF:lower=predict,sigma,3,*,- \ - LINE1:predict#00ff00:prediction \ - LINE1:upper#0000ff:upper\ certainty\ limit \ - LINE1:lower#0000ff:lower\ certainty\ limit \ - CDEF:exceeds=value,UN,0,value,lower,upper,LIMIT,UN,IF \ - TICK:exceeds#aa000080:1 \ - CDEF:perc95=86400,-7,1800,95,value,PREDICTPERC \ - LINE1:perc95#ffff00:95th_percentile + rrdtool graph image.png --imgformat=PNG \ + --start=-7days --end=+3days --width=1000 --height=200 --alt-autoscale-max \ + DEF:value=value.rrd:value:AVERAGE:start=-14days \ + LINE1:value#ff0000:value \ + CDEF:predict=86400,-7,1800,value,PREDICT \ + CDEF:sigma=86400,-7,1800,value,PREDICTSIGMA \ + CDEF:upper=predict,sigma,3,*,+ \ + CDEF:lower=predict,sigma,3,*,- \ + LINE1:predict#00ff00:prediction \ + LINE1:upper#0000ff:upper\ certainty\ limit \ + LINE1:lower#0000ff:lower\ certainty\ limit \ + CDEF:exceeds=value,UN,0,value,lower,upper,LIMIT,UN,IF \ + TICK:exceeds#aa000080:1 \ + CDEF:perc95=86400,-7,1800,95,value,PREDICTPERC \ + LINE1:perc95#ffff00:95th_percentile Note: Experience has shown that a factor between 3 and 5 to scale sigma is a good discriminator to detect abnormal behavior. This obviously depends also on the type