So I wanted to fix the resolution to: number of frequencies is 56 and time-localised point is 3
Hoever I cannot understand the arguments of the function scipy.signal.spectrogram:
scipy.signal.spectrogram(x, fs=1.0, window=('tukey', 0.25), nperseg=None, noverlap=None, nfft=None, detrend='constant', return_onesided=True, scaling='density', axis=-1, mode='psd')
It's here in this documentation: https://docs.scipy.org/doc/scipy-0.19.0/reference/generated/scipy.signal.spectrogram.html
What is nseg
? nfft
?
Becuase it says here that "optimal number of frequencies is 56 and the optimal time-localised point is 3"
I'm new to the concept of spectrogram. How do you adjust it's resolution? Can you give an intuitive explanation on how to generate the spectrogram? And apply it to this function in Scipy?