Multi peak Lorentzian curve fitting
Wed, 11/17/2021 - 10:19 am
I have some x-ray scattering data for some materials and I have 16 spectra for each material. In one spectra, there are around 8 or 9 peak positions.
The peak positions and the FWHM values should be the same for all 16 spectra. I did my preliminary data fitting using the multipeak package. But it took some time to fit all the spectra one by one.
So I am planning to use global fitting and prior to that, I was trying to fit one spectrum using the normal curve fitting option. I used a user-defined equation with multi peaks as follows:
f(x) = y0 + A1/(4*(x-x1)^2 + w1^2)+ A2/(4*(x-x2)^2 + w2^2)+ A3/(4*(x-x3)^2 + w3^2)+ A4/(4*(x-x4)^2 + w4^2)+ A5/(4*(x-x5)^2 + w5^2)+ A6/(4*(x-x6)^2 + w6^2)+ A7/(4*(x-x7)^2 + w7^2)+ A8/(4*(x-x8)^2 + w8^2)
But it doesn't give me a good fitting. Can you please trouble shoot this.