I’m trying to fit a 11 parameter function to a histogram. I’m hoping that I can do the fitting in a similar (or better) way than I would if I were using mn_fit:
- setup my fit function
- fix parameters 0-7 to reaonable values
- set ranges for parameters 8-10
- fit once
- fix parameters 8-10 to their fitted values
- float parameters 0-7 with their startingg values at their fixed value
- fit again
float parameters 8-10 with their starting values at their fixed value
- final fit
I know how to do steps 1 - 4 easily.
I’m not sure how to “float parameters” like in steps 6 and 8.
Is there an easier way than
a) getting the current value ‘GetParameter’
b) using ‘SetParamLimits’
c) using ‘SetParameter’
I’m not sure the best way of fixing a parameter to its fitted values (step 5) Is there anything better than:
a) getting the current value
b) using ‘FixParameter’
i.e. Is there an equivalent to 'FixParameter(index) where if I don’t give it a value, it fixes it to its current value. If not, would you consider this for the future?
Finally, I’m trying to do this both “by hand” and automatically. Is there a way to use the Fit Panel to do any of these things?
Thanks for your time,