usingNeuroAnalyzerusingCairoMakie# Quarto sets a default figure size (672 × 480 px), which overrides the sizes of# NeuroAnalyzer figures: remove itdelete!(CairoMakie.Makie.CURRENT_DEFAULT_THEME, :resolution)eeg =load_neuro("files/eeg/eeg.hdf")e10 =epoch(eeg, ep_len =10)
FOOOF is the algorithm for parameterizing neural power spectra into aperiodic and periodic components.
NeuroAnalyzer re-implements the fitting algorithm of fooof 1.1.0 / specparam 2.0.0rc (the core algorithm and its default settings are identical in both), with these differences:
curve fitting uses an internal box-constrained Levenberg-Marquardt solver instead of scipy.optimize.curve_fit; results agree with the Python reference to within fitting tolerance, but are not bit-identical
for aperiodic_mode = :fixed the knee is reported as 0 (the fixed model is the knee model with knee = 0), so that the output always has 3 aperiodic parameters
For details of the FOOOF method, please visit the project documentation.
FOOOF analysis in NeuroAnalyzer, analyze channel F3, 10th epoch, in the 1 to 40 Hz range; detect up to 2 peaks: