FOOOF/Specparam matlab structure unit of peakfit

Hello, I am analizing EEG data using fooof/specparam. I wondered about the unit used for output of peak_fit in matlab. Is it in log(10) or is it in db or what is it, i couldn´t find out yet.
Thank you in advance.

None of the above, it does not have units.
It is a ratio of the full spectrum model to the aperiodic fit, at each frequency bin.

The functions gen_aperiodic and fooofed_spectrum return the spectra in Bells, so 10^ just return them to units^2.

That was a tricky question :wink:

I am confused because of you Compare the plots Brainstorm is giving out and the Values Matlab Object, Even after adjusting the log space or linear Space, are Not the Same. In the Tutorial, the Assess the specparam parameters section is Not very detailed. Is it possible to make it more detailed and also Adding the units? Or is it identical with the ones in the normal Fooof Documentation fooof.FOOOF — fooof 1.1.0 documentation Additionally a function in Brainstorm to calculate the aperiod adjusted spectrum would be amazing, if you want a feedback for improvement.
Greetings, Lara

Can you be more specific which differences are you finding and how?
You may want to check this simple example on understanding the FOOOF parameters: Understanding FOOOF parameters in Brainstorm · GitHub

The section ** Accessing FOOOF model parameters** does have the units for the FOOOF parameters parameters that do have units. Yes, it is the same as in the FOOOF documentation.
Can you point to the specific information that is missing so we can add it to the tutorial?

This is already in there. Check the code in the function FOOOF_matlab in process_fooof.m
brainstorm3/toolbox/process/functions/process_extract_fooof.m at master · brainstorm-tools/brainstorm3 · GitHub