SetParameters in fitting

Hello,
In root for fitting a peak using a function and using SetParameters we can define 11 parameters maximum . How to increase the number of parameters like 15 , 20 etc ?

thanks
saradindu
Please read tips for efficient and successful posting and posting code

ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided


These methods do not have “limits” on the number of parameters:
TF1::SetParameters(const Double_t *params)
TF1::SetParameter(Int_t param, Double_t value)
TF1::SetParameter(const TString &name, Double_t value)

Thanks !

But in these I can set parameters from 0 to 10 means total 11 parameters .

I need to set parameters more than 11 like 15 , 20 etc.

How to do that ?

Try

double pars[] = {1., 6., -1., 51.6, 19., 0., -82.11, 3., 3.1416, -2.7, 110.3, 4.9, 21.7, 667, -10.2};
myFunc->SetParameters(pars);

Thanks ! It worked.

regards
saradindu