Reputation: 449
I wanted to ask you if it would be possible to implement this idea:
So all in all, I measure a signal (blue curve, See plot of the measured data and the initial guess for the lorentzian function), this signal is a convolution of a lorentzian function and a certain relaxation kernel. I have an initial guess of the lorentzian function (see green curve), but as you notice, the green curve is not really aperfect lorentzian function , as it is still dissymmetric in the bottom. I have never used this tyme of curve fitting and would be really grateful if anyone could show me a little code-example to find the wanted lorentzian function or the actual relaxation kernel exp(-t/tau).
So now in steps:
Upvotes: 0
Views: 970
Reputation: 4647
I have used the Differential Evolution genetic algorithm that is in recent versions of scipy to aid in fitting a double Lorentzian peak equation to Raman spectroscopy data with excellent results. Change the data and fitted equation in my GitHub code to your own and you should be done.
The GitHub URL for this project is:
https://github.com/zunzun/RamanSpectroscopyFit
Upvotes: 0