I’m trying to fit the points of TGraph with a user function, in specific a sigmoid function. The data are very simple, consiste in 3 columns, x, y, ye :
The error output is:
input_line_84:1:77: error: use of undeclared identifier 'gr’
Double_t TFormula____id5604481502741222502(Double_t x,Double_t p){ return gr.GetFunction(((p[0]/(1+TMath::Exp(-p[2](x[…
^
Error in TFormula::Eval: Can’t find TFormula____id5604481502741222502 function prototype with arguments Double_t,Double_t*
Error in TFormula::ProcessFormula: Could not find gr.GetFunction function with 1 argument(s)
Error in TFormula::ProcessFormula: Formula “gr.GetFunction((([Emax]/(1+TMath::Exp(-[Lambda]*(x-[HV50]))))))” is invalid !
Error in TFormula::Eval: Formula is invalid and not ready to execute
gr.GetFunction is unknown.
Anyway I obtain the fit parameters, but not the error parameters which results always zero…
And I also tried to extrapolate an value with the command: