Comments (2)
Added.
Notes (I'm not sure I'm a huge fan of how I added this):
- I didn't just do it with bounds, since bounds necessarily takes a range, and we want 'b' = exactly 0, having 'b' be some tiny range around 0 felt messy.
- Instead then I added a hardset 'b' lorentzian function version.
- To avoid a series of conditionals, I set a declaration of the which lorentzian function to use in init, and then some tricks (for guess, printing, etc) to make it all general to how many params are fit (3 with knee, 2 with no knee).
- To make the declared function available outside init, it's declared as a global
The use of a global here is probably considered bad practice.
Any alternative suggestions of how to add this are welcome.
from fooof.
No one has complained, so I'm going to close this for now - it all seems to work. Any suggested re-writes of this feature are always welcome.
from fooof.
Related Issues (20)
- Notes on linear vs log power & units of different parameters / settings HOT 1
- [ENH]: Sliding window: Use previous params as guesses for next fit
- Run modes HOT 4
- Consider checking / changing default values HOT 1
- Developing a system for benchmarking
- bug report: AttributeError: 'FOOOF' object has no attribute 'to_df' HOT 2
- units/scaling for PW and min_peak _height? HOT 3
- Weird fitting when upper bound frequency is higher than 100 Hz. HOT 2
- Bug report: tutorial about Example Power Spectra and Models HOT 2
- Alternative Knee Model HOT 1
- get_params not working due to inhomogeneities in FOOOFGroup HOT 10
- fooof v.1.1 not yet updated on conda forge HOT 7
- Problem on retrieving aperiodic and peak data from Group object with get_data HOT 1
- [Question] ERROR regarding Lower-bound peak width limit is < or ~= the frequency resolution: 1.00 <= 1.00 HOT 2
- specparam - FOOOF confusion HOT 3
- [ENH] to_df to also return the gaussian parameters HOT 6
- Parts of the original spectrum are below the aperiodic fit HOT 1
- Finalizing 2.0 release plan
- Top of the Specpram 2.0.0rc2 documentation page not adjusting properly HOT 6
- Specparam2rc doc buggy example HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fooof.