old musi stuff

This commit is contained in:
2025-10-29 21:48:54 -05:00
parent c3b0526f59
commit 6b150b7bae
11 changed files with 1319 additions and 7 deletions

View File

@@ -24,8 +24,8 @@ def compute_feature_vector(eegdata, Fs):
NFFT = nextpow2(winSampleLength)
Y = np.fft.fft(dataWinCenteredHam, n=NFFT, axis=0)/winSampleLength
PSD = 2*np.abs(Y[0:NFFT/2,:])
f = Fs/2*np.linspace(0,1,NFFT/2)
PSD = 2*np.abs(Y[0:NFFT//2,:])
f = Fs/2*np.linspace(0,1,NFFT//2)
# SPECTRAL FEATURES
# Average of band powers