Dear RootTalk,
I’ve a question to fit a function. Habitually I use my fit function with only 2 parameter (x and my parameters)
double fitFunc (double xArray[], double par[])
{
double x = xArray[0];
double f = 0.;
f = myfunction
return f;
}
call by TF1* f = new TF1(“f”, fitFunc, xmin, xmax, npar);
I want to use fitFunc with a third parameter, a condition
double fitFunc (double xArray[], double par[], double mycondition[])
{
}
do you think is it possible to do that ? Can you show me the way ?
Thanks you very much