Re: Average of two graphs

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Wed, 31 Mar 2010 09:54:35 +0200


In general the average of 2 TGraphs does not make sense because the X values may not be identical.
I suggest using a TMultiGraph and may be use the Fit function for your parameterisation.

Instead of using this list, I also suggest to post your questions at the Forum http://root.cern.ch/phpBB2/

Rene Brun

Cedric Sodhi wrote:
> (Sent this mail from another email adress, dont know whether it failed
> or worked, sorry)
>
> (I'm proud to, for the first time, query the mailing list with a
> non-technical issue that I have :->)
>
> Is there a ready-to-use function to get the "Average of two graphs" I
> think of that as the following:
>
> The average graph c of two graphes a and b is given by a
> parametrisation (c1,c2)(t) 0 < t < 1 where (c1,c2)=( (a1,a2)(t) +
> (b1,b2)(t) )/2 and a(t), b(t) the parametrisations of a and b
> respectively.
>
> Well, I just sort of made that up, but does something like that exist?
> It would be useful after all!
>
>
>
Received on Wed Mar 31 2010 - 09:51:38 CEST

This archive was generated by hypermail 2.2.0 : Wed Mar 31 2010 - 17:50:01 CEST