scipy.signal.ShortTimeFFT.
t#
- ShortTimeFFT.t(n, p0=None, p1=None, k_offset=0)[source]#
Times of STFT for an input signal with n samples.
Returns a 1d array with times of the
stftvalues with the same parametrization. Note that the slices aredelta_t = hop * Ttime units apart.- Parameters:
- n
Number of sample of the input signal.
- p0
The first element of the range of slices to calculate. If
Nonethen it is set top_min, which is the smallest possible slice.- p1
The end of the array. If
Nonethen p_max(n) is used.- k_offset
Index of first sample (t = 0) in x.
See also
delta_tTime increment of STFT (
hop*T)hopTime increment in signal samples for sliding window.
nearest_k_pNearest sample index k_p for which t[k_p] == t[p] holds.
TSampling interval of input signal and of the window (
1/fs).fsSampling frequency (being
1/T)ShortTimeFFTClass this method belongs to.