Does nperseg=32, noverlap=16 mean the window length is 32mS with a shift of 16mS?
Asked
Active
Viewed 788 times
1
-
it's in samples, not seconds – endolith Aug 13 '20 at 16:07
-
Btw, librosa has a very nice STFT implementation. And documentation has lots more examples than scipy https://librosa.org/doc/latest/generated/librosa.stft.html – Jon Nordby Sep 23 '20 at 20:22
1 Answers
-1
for this function:
- nperseg will set the number of samples to output from your STFT.
- noverlap will specify how many old samples you want to take to calculate your future STFT.
Let's say you want a stft of size 256 with an overlap of 50% you will set noverlap = 128. 128 samples will then be taken from the old segment that was used to calculate the previous STFT...
For more information about STFT and the interest of overlap I invite you to watch this discussion.
Nathan Huchon
- 107
- 4