Code

Imported upstream version 1.3rc4.
[pkg-rrdtool.git] / doc / rrdgraph_rpn.html
index a972313afc9ce6f654144cd929d415d9d6743b80..d5fccbbb015332149fb59920effe99d7c19f17f3 100644 (file)
@@ -99,6 +99,9 @@ mean that any value other than 0 is considered to be true.</p>
 <dd>
 <p>Example: <code>A,B,C,IF</code> should be read as <code>if (A) then (B) else (C)</code></p>
 </dd>
+<dd>
+<p></p>
+</dd>
 </li>
 <dt><strong><a name="item_comparing_values">Comparing values</a></strong>
 
@@ -129,6 +132,9 @@ will always return an <em>unknown</em></p>
 <p>Example: <code>CDEF:a=alpha,0,100,LIMIT</code> will return <em>unknown</em> if
 alpha is lower than 0 or if it is higher than 100.</p>
 </dd>
+<dd>
+<p></p>
+</dd>
 </li>
 <dt><strong><a name="item_arithmetics">Arithmetics</a></strong>
 
@@ -139,6 +145,13 @@ alpha is lower than 0 or if it is higher than 100.</p>
 <p>Add, subtract, multiply, divide, modulo</p>
 </dd>
 <dd>
+<p><strong>ADDNAN</strong></p>
+</dd>
+<dd>
+<p>NAN-safe addition. If one parameter is NAN/UNKNOWN it'll be treated as
+zero. If both parameters are NAN/UNKNOWN, NAN/UNKNOWN will be returned.</p>
+</dd>
+<dd>
 <p><strong>SIN, COS, LOG, EXP, SQRT</strong></p>
 </dd>
 <dd>
@@ -210,7 +223,7 @@ average, ignoring all UNKNOWN values in the process.</p>
 <p>Example: <code>CDEF:x=a,b,c,d,4,AVG</code></p>
 </dd>
 <dd>
-<p><strong>TREND</strong></p>
+<p><strong>TREND, TRENDNAN</strong></p>
 </dd>
 <dd>
 <p>Create a ``sliding window'' average of another data series.</p>
@@ -240,6 +253,12 @@ average is essentially computed as shown here:</p>
      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)</pre>
 </dd>
+<dd>
+<p>TRENDNAN is - in contrast to TREND - NAN-safe. If you use TREND and one 
+source value is NAN the complete sliding window is affected. The TRENDNAN 
+operation ignores all NAN-values in a sliding window and computes the 
+average of the remaining values.</p>
+</dd>
 </li>
 <dt><strong><a name="item_special_values">Special values</a></strong>
 
@@ -322,6 +341,9 @@ in the examples section below on how to use this.</p>
 <p>Duplicate the top element, remove the top element, exchange the two
 top elements.</p>
 </dd>
+<dd>
+<p></p>
+</dd>
 </li>
 </dl>
 <p>
@@ -340,6 +362,15 @@ the first occurrence of that value in the time component.</p>
 <p>Example: <code>VDEF:avg=mydata,AVERAGE</code></p>
 </dd>
 </li>
+<dt><strong><a name="item_stdev">STDEV</a></strong>
+
+<dd>
+<p>Returns the standard deviation of the values.</p>
+</dd>
+<dd>
+<p>Example: <code>VDEF:stdev=mydata,STDEV</code></p>
+</dd>
+</li>
 <dt><strong><a name="item_last_2c_first">LAST, FIRST</a></strong>
 
 <dd>