user-defined fitting function [Lorentzian] issue
ali8
F(f) = (A*fc) / (f^2+fc^2)
Where A and fc are fitting parameters. After defining this function and supplying reasonable initial guesses and defining the fitting range, still Igor does not provide a good fit.
The test experiment is attached.
Also, your data range may be too small to avoid rounding errors. Would it be a problem to scale the x- and y-data to values closer to 1?
August 3, 2014 at 10:38 pm - Permalink
And for the data range...I will try that...
EDIT - Scaling the data up so that y values are 1s to 100s, and x values are similar, I find the fit function working very nice. Will check again and report to you.
August 4, 2014 at 09:05 am - Permalink
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
August 7, 2014 at 02:00 pm - Permalink
August 8, 2014 at 06:35 am - Permalink
But the built-in Lor fit function includes an X and a Y offset:
Y = Y0 + A/((X-X0)^2 + B)
where Y0 is a y offset and X0 is the X offset or peak location.
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
August 8, 2014 at 09:30 am - Permalink