X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=doc%2Frrdgraph_rpn.pod;h=dfc9a0bda903e77d6538fa7cffe38eb079a4376e;hb=cffc3b561fbc7bafbde87b10edf18013df3da531;hp=4585850bc871abb92cb252823e49e0a0a9e872d0;hpb=cb092381724e4ba8a1f18712fefc541a3d370f99;p=rrdtool.git diff --git a/doc/rrdgraph_rpn.pod b/doc/rrdgraph_rpn.pod index 4585850..dfc9a0b 100644 --- a/doc/rrdgraph_rpn.pod +++ b/doc/rrdgraph_rpn.pod @@ -15,11 +15,12 @@ takes as many elements from the stack as needed. Pushing is done implicitly, so whenever you specify a number or a variable, it gets pushed onto the stack automatically. -At the end of the calculation there should be one and only one -value left on the stack. This is the outcome of the function and -this is what is put into the I. For B instructions, -the stack is processed for each data point on the graph. B -instructions work on an entire data set in one run. +At the end of the calculation there should be one and only one value left on +the stack. This is the outcome of the function and this is what is put into +the I. For B instructions, the stack is processed for each +data point on the graph. B instructions work on an entire data set in +one run. Note, that currently B instructions only support a limited +list of functions. Example: C @@ -107,11 +108,24 @@ B Arctangent (output in radians). +B + +Arctangent of y,x components (output in radians). +This pops one element from the stack, the x (cosine) component, and then +a second, which is the y (sine) component. +It then pushes the arctangent of their ratio, resolving the ambiguity between +quadrants. + +Example: C will convert C +components into an angle in degrees. + B Round down or up to the nearest integer. -Z<> +B + +Convert angle in degrees to radians, or radians to degrees. =item Set Operations @@ -182,8 +196,6 @@ 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 Time inside RRDtool is measured in seconds since the epoch. The @@ -217,7 +229,7 @@ Z<> =head1 VARIABLES -These operators work only on B statements. +These operators work only on B statements. Note that currently ONLY these work for B. =over 4 @@ -259,6 +271,18 @@ finite numbers and are always more than the I numbers. Example: C +=item LSLSLOPE, LSLINT, LSLCORREL + +Return the parameters for a Beast Bquares Bine I<(y = mx +b)> +which approximate the provided dataset. LSLSLOPE is the slope I<(m)> of +the line related to the COUNT position of the data. LSLINT is the +y-intercept I<(b)>, which happens also to be the first data point on the +graph. LSLCORREL is the Correlation Coefficient (also know as Pearson's +Product Moment Correlation Coefficient). It will range from 0 to +/-1 +and represents the quality of fit for the approximation. + +Example: C + =back =head1 SEE ALSO