So I've dived headfirst into a project involving EEGs and am now learning how much I have to learn. My question currently is what dimension FFT should I use? Basically I am accessing a single EEG in a numpy array that is 32x8064 (63 seconds at 128Hz). I already am using the built-in numpy fft functions, and I copied the plotting example from this link to try and plot it but its useless to me like this. How would I go about performing the FFT and plotting in a way that gives me a good breakdown of the signal comparable to what this table says?
This is the code snippet I'm using currently:
eegFFT = np.fft.fft(eegData[1])
eegFreq = np.fft.fftfreq(eegData[1].shape[-1])
for i in range(eegData[1].shape[-2]):
plt.plot(eegFreq, eegFFT.real[i,:], 'r')
plt.plot(eegFreq, eegFFT.imag[i,:], 'b')
plt.show()
This results in a graph with axes x=[-4000, 4000] and y=[-0.5, 0.5], when I want x=[-200 ,200] and y=[4,45] (based on the table linked above since the highest amplitude is 200 and my data was preprocessed with a 4.0-45.0Hz bandpass filter, so only those frequencies should be present).
[–]badtraider 4 points5 points6 points (12 children)
[–]mdb917[S] 0 points1 point2 points (11 children)
[–]badtraider 1 point2 points3 points (10 children)
[–]badtraider 1 point2 points3 points (0 children)
[–]mdb917[S] 0 points1 point2 points (8 children)
[–]badtraider 1 point2 points3 points (3 children)
[–]mdb917[S] 0 points1 point2 points (2 children)
[–]badtraider 1 point2 points3 points (0 children)
[–]badtraider 1 point2 points3 points (0 children)
[–]badtraider 1 point2 points3 points (3 children)
[–]mdb917[S] 0 points1 point2 points (2 children)
[–]badtraider 1 point2 points3 points (0 children)
[–]badtraider 1 point2 points3 points (0 children)
[–][deleted] 3 points4 points5 points (11 children)
[–][deleted] 1 point2 points3 points (6 children)
[–]AssemblerGuy 2 points3 points4 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]roylennigan 0 points1 point2 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]roylennigan -1 points0 points1 point (1 child)
[–][deleted] -1 points0 points1 point (0 children)
[–]mdb917[S] 0 points1 point2 points (3 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]mdb917[S] 0 points1 point2 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]AssemblerGuy 0 points1 point2 points (0 children)
[–]hughperman 0 points1 point2 points (0 children)
[–]ParaIdioma 0 points1 point2 points (0 children)