Fitting and Extrapolation

Dear all,
Please check the figure attached.
I have this figure how to evaluate the side regions and extrapolate the meddle region.
Like I did manually .
Thank you.

Welcome to the ROOT Forum! Maybe @moneta can help with this

Hello,

If you have a model for your data points you can perform a fitting. Make a TGraphErrors with your points and then call TGraph::Fit. See for example the tutorial fitLinear.C.

If you don’t have model, you can just do interpolations of point. You can just make a TGraph and call TGraph::Eval or use the interpolation class of MathMore. See the class `ROOT::Math::Interpolator’ and this example to use it.

Best regards

Lorenzo

Let me try to do that.
Thank you for your kind reply.