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

added lorentzian function #321

Merged
merged 3 commits into from
Mar 9, 2025
Merged

Conversation

thissop
Copy link
Contributor

@thissop thissop commented Apr 1, 2024

Hello!

This library is very helpful, I added a lorentzian function to the periodic fit capability because I use this for modeling peaks in power density spectra of black hole light curves, it might be useful for other areas as well :)

http://emilygraceripka.com/blog/16

@thissop
Copy link
Contributor Author

thissop commented Apr 1, 2024

example in use:

image

@TomDonoghue TomDonoghue changed the base branch from main to modes April 7, 2024 18:54
@TomDonoghue TomDonoghue changed the base branch from modes to main April 7, 2024 18:54
@TomDonoghue
Copy link
Member

@thissop - this looks fantastic, thank you for the submission!

Quick Q: would you have any issue with us potentially calling this a 'cauchy' fit function, as I understand it is sometimes also called? In the context of the neural data, we sometimes call the 1/(f**x + k) a 'lorentzian function - so calling this function one as well would likely get a bit confusing!

Also - this is actually great timing as we are currently building in additional fit functions with the ongoing 2.0 developments. In general, we would want to add some test and examples of this fitting - if you have any strong desire to contribute those that's great, but since I'm currently working on related update, if it works for you I can also just merge this directly in, and then add some tests (& maybe a name change, etc) as I work through things from here!

thissop and others added 2 commits August 8, 2024 01:29
needed to add periodic_mode param to two additional functions
@TomDonoghue
Copy link
Member

There's some tweaks here to integrate this with the new & WIP updates to the module - I think the easiest approach is to merge and edit from there, so that's what I'm going to do. Thanks for the submission @thissop

@TomDonoghue TomDonoghue merged commit 70c48fc into fooof-tools:main Mar 9, 2025
7 checks passed
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

Successfully merging this pull request may close these issues.

2 participants