William R. Lorenz wrote:

>I'm looking to take 2-4 unique RRD files that plot the same data from
>different perspectives (i.e. temperature readings from four different
>sensors) and average all the data points together into one graph line.
>
>Is there a CDEF, VDEF, or other such function that will allow me to
>average more than one data source together for this rrdgraph purpose?

You can pull data from more than one source - just define multiple 
data sources with the right files.

Averaging four values to one line is basic arithmetic, if the values 
are a to d, then the average is simply (a+b+c+d)/4, or in rpn 
"a,b,+,c,+,d,+,4,/", or "a,b,c,d,+,+,+,4,/".

If one or more of the sources may be undefined (or null), then the 
result will be null. Working around this is a bit more involved.

-- 
Simon Hobson

Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed
author Gladys Hobson. Novels - poetry - short stories - ideal as
Christmas stocking fillers. Some available as e-books.

_______________________________________________
rrd-users mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users

Reply via email to