You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds more flexibility in the aperiodic/oscillatory fitting
DESCRIPTION:
I have added a keyword `ap_range` to the FOOOF.fit() function.
When `ap_range` is specified, the already existing `freq_range` keyword
is used to determine the frequencies for the oscillatory fits while the
ap_range keyword is used for the aperiodic fit. When it is not
specified, everything proceeds as before.
This allows the two parts FO and OOF to be more-or-less independent of
one another if so-desired.
Furthermore, the `ap_range` keyword may also be a set of indices in
order to allow for a very simple implementation of exclusion zones.
TESTING:
Tested on 5 different EEG files, no errors unless inputs are the wrong
size.
Update: I have also modified the FOOOFGroup.fit() in order to work with
this keyword.
0 commit comments