X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=doc%2Frrdgraph_rpn.src;h=b765f9abc8ee86802b3f5c7835e75ccfbbe957bd;hp=7952a3f22e0899501c0fb47b443bb3017c3be8ea;hb=d828f3eccac8dbad7bfc14812e406377669baaa4;hpb=5cbf604e8be474094aef371c53917ec9046bad32 diff --git a/doc/rrdgraph_rpn.src b/doc/rrdgraph_rpn.src index 7952a3f..b765f9a 100644 --- a/doc/rrdgraph_rpn.src +++ b/doc/rrdgraph_rpn.src @@ -1,6 +1,6 @@ =include name -=head1 SYNOPSYS +=head1 SYNOPSIS IRPN expressionE> := IvnameE>|IoperatorE>|IvalueE> @@ -42,16 +42,12 @@ would do C and need no parentheses. B -I - Pop two elements from the stack, compare them for the selected condition and return 1 for true or 0 for false. Comparing an I or an I value will always result in 0 (false). B -I - Pop one element from the stack, compare this to I respectively to I. Returns 1 for true or 0 for false. @@ -102,6 +98,10 @@ B Sine, cosine (input in radians), log, exp (natural logarithm) +B + +Arctangent. Output in radians. + B Round down,up to the nearest integer @@ -127,6 +127,20 @@ set or otherwise the result of this B at the previous time step. This allows you to do calculations across the data. This function cannot be used in B instructions. +B + +Pushes an I value if this is the first value of a data +set or otherwise the result of vname variable at the previous time +step. This allows you to do calculations across the data. This +function cannot be used in B instructions. + +B + +Pushes the number 1 if this is the first value of the data set, the +number 2 if it is the second, and so on. This special value, allows +you to make calculations based on the position of the value within +the data set. This function cannot be used in B instructions. + Z<> =item Time @@ -191,7 +205,7 @@ Z<> =item MAXIMUM, MINIMUM, AVERAGE Return the corresponding value, MAXIMUM and MINIMUM also return -the first occurance of that value in the time component. +the first occurrence of that value in the time component. Example: C @@ -201,7 +215,7 @@ Z<> Return the last,first value including its time. The time for FIRST is actually the start of the corresponding interval, where -LASTs time component returns the end of the corresponding interval. +the LAST time component returns the end of the corresponding interval. Example: C @@ -209,7 +223,7 @@ Z<> =item TOTAL -Returns the rate from each defined timeslot multiplied with the +Returns the rate from each defined time slot multiplied with the step size. This can for instance return total bytes transfered when you have logged bytes per second. The time component returns the amount of seconds