I’m trying to fit a self-defined function (say f) to a data set (TGraphErrors). The function has two parameters, say, p1 and p2.
I want to allow all values of p1 and p2 which are greater than 0, and in addition to that, I want to require p2 > p1.
How can this be done with ROOT?
I am aware of the TF1::SetParLimits() function, but I’m not aware of a possiblity to define a dynamic limit that depends on the other fit parameter.
Any suggestions greatly appreciated.