Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misc. fitting issues #15

Open
jharman25 opened this issue Apr 26, 2018 · 3 comments
Open

Misc. fitting issues #15

jharman25 opened this issue Apr 26, 2018 · 3 comments

Comments

@jharman25
Copy link
Member

  • Gaussian fitting for demo example doesn't work well if you don't specify peaks
  • Lorentzian fitting struggles if you give the appropriate peak guesses

Not sure if this is an ambigauss problem or just a general fitting problem, but wanted to note it here.

@lcwheeler
Copy link
Member

I think that's because the new base class doesn't use the scipy find_peaks_cwt function to identify peaks. Looks like it needs peaks to be specified. I think we'll need to change that in the base class to get it to estimate the peak locations. Maybe run it by @Zsailer?

@Zsailer
Copy link
Member

Zsailer commented Apr 26, 2018

I think that's because the new base class doesn't use the scipy find_peaks_cwt function to identify peaks. Looks like it needs peaks to be specified.

This is true for @jharman25's first point. Currently, you have to specify the number of peaks or it will throw an error. We need to reimplement find_peaks_cwt. This should be easy to do.

@jharman25's second point is a little more subtle. The lorentzian model may need more precise guess parameters for the width and amplitudes of the peaks. I think we should include logic somewhere that computes smarter guesses for each parameter. Right now, it sets all parameters equal to 1.

@lcwheeler
Copy link
Member

Cool, cool. Thanks for the explanation!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants