As you know the STFT has a matrix result, with the dimension given by:
number of frequency bins * number of time frames.
For example, suppose that I have a signal with characteristics and I want to apply STFT method with the following input parameters:
- sampling rate : 250,000 Hz;
- data length : 498900 samples;
- window length :
nftt=625
samples; - hop size : 125 samples
With those parameters my STFT will have an output with size: 313*3987
(the method to calculate these values exists in some websites)
Now, my question is how can I define a limit for frequency dimension of STFT output? I think I should calculate my threshold values as an index number in STFT output, if so, how can I do it?
I have the frequency resolution, but when I multiply it by nfft
, it's half of the value of sampling rate.