However, I have another related question and hope you could guide me. What is the formula for FOOOF? I have , for example, these parameters:
aperiodic_params: [-9.18, 1.02]
peak_params:[8.91, 1.69, 1.14; 18.35, 0.80, 1.40]
Is the fitted function like this:
10^(-9.18) * f^(1.02) + 1.69exp(-1/2((f-8.91)/1.14)^2 ) + 0.80exp(-1/2((f-18.35)/1.40)^2 )
or something else?
In addition, I have particularly problem with the units of PSD. Please look at these three plots of the same PSDs:
The FOOOF parameters are for which units? In addition, It is starnge to me, why the units in Log(Power) plots are largly negative (around -100).
+1 to everything @Raymundo.Cassani has said above! Just one small point is that the exponent parameter in the equation has an implied negative, leading to an exponential decay (negative signs are often dropped when reporting by convention).
@Raymundo.Cassani @Luc
Please look at this figure. I used a graphical calculator to plot the FOOOF function according to its parameters. But the final plot is not completely fit on what Brainstorm (FOOOF) has drawn:
the FOOOF model (red curve on the left) is not fit to the black curve (on the right). I have checked it and understood that the problem is not because of aperiodic (that is exactly fitted to the FOOOF aperiodic plot). Is there a problem with my formula?
peaks: a struct containing every peak’s channel of origin, center frequency (in Hz), amplitude (in B, Bells, or log[Power]), and standard deviation/gamma (in Hz); if peaks were sorted by frequency band, another column would show the name of the frequency band the peak is located in.
The amplitude of the peak is already in Bells [B], so you would need to multiply it by 10 to get dB, i.e., no need to apply log10 on the peaks.