### Calculation of FFT power for offline analysis

Posted:

**03 Sep 2018, 07:05**Dear BCI2000-Community

I have some basic questions regarding the calculation of FFT/AR spectrum in the BCI2000. Currently, I use the FFT as an option of the ‚SpectralEstimator‘. To double check my results, I wanted to do an offline analysis with the entire signal processing pipeline in Matlab. By doing that, some issues/questions popped up:

1. Is there something similar to the ‚men‘-function (AR spectrum) for the FFT spectrum offline calculation? If not, what is the exact FFT implementation, which I can use for the Matlab offline processing?

2. What is the FFT frequency resolution? By using a ‚WindowLength‘ of 0.5s, the frequency resolution should be 2Hz. However, what role plays the parameter ‚BinWidth‘ then? Is this parameter only active for the AR calculation? Moreover, have the parameters ‚FirstBinCenter‘ and ‚LastBinCenter‘ the same function as in the AR calculation?

3. Are there any general recommendations whether to use AR or FFT? What are the pros and cons of both? Moreover, applies the community detrending and/or windowing function?

Thanks a lot for your help!

I have some basic questions regarding the calculation of FFT/AR spectrum in the BCI2000. Currently, I use the FFT as an option of the ‚SpectralEstimator‘. To double check my results, I wanted to do an offline analysis with the entire signal processing pipeline in Matlab. By doing that, some issues/questions popped up:

1. Is there something similar to the ‚men‘-function (AR spectrum) for the FFT spectrum offline calculation? If not, what is the exact FFT implementation, which I can use for the Matlab offline processing?

2. What is the FFT frequency resolution? By using a ‚WindowLength‘ of 0.5s, the frequency resolution should be 2Hz. However, what role plays the parameter ‚BinWidth‘ then? Is this parameter only active for the AR calculation? Moreover, have the parameters ‚FirstBinCenter‘ and ‚LastBinCenter‘ the same function as in the AR calculation?

3. Are there any general recommendations whether to use AR or FFT? What are the pros and cons of both? Moreover, applies the community detrending and/or windowing function?

Thanks a lot for your help!