TH1::Interpolate

Hello,

I am using the TH1::Interpolate() function to interpolate a histogram between the various points. I would like to know what is the interpolation method that is used there, and how I could estimate the error on the interpolated value. Does anybody know the answer?

Thank you in advance.

Hi,
I’m pretty sure it’s a linear interpolation performed thru the bin centers (as nodes).
If you want a more refined interpolation, I think the simplest way is to convert your TH1 into a TGraph.
Then you can use TGraph::Eval(), which is linear by default, but also allows the use of splines as option.

[quote=“dom_eckert”]Hello,

I am using the TH1::Interpolate() function to interpolate a histogram between the various points. I would like to know what is the interpolation method that is used there, and how I could estimate the error on the interpolated value. Does anybody know the answer?

Thank you in advance.[/quote]