Re: TGraph2D & Evaluate

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Fri, 11 Feb 2011 15:27:27 +0100


Did you try both TGraph2D::Interpolate and TH2::Eval?

Note that some optimizations in TGraph2D::Interpolate were done in version 5.28

Rene Brun

On 11/02/2011 04:31, nguler_at_jlab.org wrote:
> Hello All,
> I have an intensity distribution in x and y dimensions. The distribution is
> discrete but I am plotting it with TGraph2D and then using Interpolate class
> to get the value of the intensity for (x,y) point that is not in the original
> data. It is not too far off but not perfect either. I am wondering if there is
> any other class that I am not aware of. I would like to try and compare. Is
> there Eval class (like the one for TH2F) for TGraph2D?
>
> Is the Eval class for TH2F better than the Interpolate class for TGraph2D for
> this kind of thing, so should I fill a histogram instead of filling TGraph2D?
>
> I appreciate you comments.
>
> - Nevzat Guler
> (757) 553-8318
>
Received on Fri Feb 11 2011 - 15:27:37 CET

This archive was generated by hypermail 2.2.0 : Fri Feb 11 2011 - 23:50:01 CET