How to calculate a correction for a function

I have a 2D Histogram of values y(x). I know they’re supposed to lie along y=x line but they resemble y=a*log(x)+b better.

I found the fit for the log function and found “a” and “b” parameters.

Now what I want is to apply some sort of correction to the x values called x_corr, such that they lie closer to the y=x line. Am I supposed to just do this:

x_corr = a*log(x)+b?

Platform: Jupyter Lab


Hi,

With ROOT, you can set the value of the bins of a histogram with the SetBinContent method (ROOT: TH1 Class Reference). It is hard to comment about the correctness of the formula, since it seems a very specific problem you are trying to solve.

Cheers,
Danilo