I have some root files with TGraph2D objects in it that I need to use for interpolation. I read in other thread that using Interpolation from TH2 is faster, so I tried to Get the objects as a TH2 but I get errors when using Interpolate():
This works and gives me a TH2F object that when I Draw it looks exactly like the TGraph2D. However when I use Interpolate() the result can be significantly different. For example:
It might be different depending on your data. For instance if your TGraph2D has a small number of points with a high gradian between them … also the number of bins of the underlying histogram can have an effect … they to increase the number of bins. It is difficult to tell without seeing both …