I have a histogram of several peaks but only want to fit one of the peaks. For that specific peak, I know to a good degree (but not as exact as a fit would yield) the parameters needed for a Gaussian fit. When use in a program like this
which is not very good given that I am trying to fit the middle peak. However, when I try to fit with the Fit Panel, using the same parameters in the “Set Parameters…” box of Fit Panel, I get a much better fit
That was one of the possibilities I thought of, but I think it’s unlikely. When using the Fit Panel, I made sure to leave the range slider alone. So, does the Fit Panel automatically change the range?
Also, I am aware that it is possible to fit a peak given a range. I am trying to avoid that option and just use the height, mean, and sigma parameters instead. I have many histograms where a peak of interest can shift around horizontally. So, I want to write something that can fit the peak if given the fit parameters without a range.
Hi,
If you want to set initial parameters when fitting a Gaussian function (“gaus”), you should use the option “B”. I think this is the reason you observe such difference when using the FitPanel.