bundles / scipy 1.17.1 / scipy / signal / _short_time_fft / ShortTimeFFT / t
function
scipy.signal._short_time_fft:ShortTimeFFT.t
Signature
def t ( self , n : int , p0 : int | None = None , p1 : int | None = None , k_offset : int = 0 ) → np.ndarray Summary
Times of STFT for an input signal with n samples.
Extended Summary
Returns a 1d array with times of the ~ShortTimeFFT.stft values with the same parametrization. Note that the slices are delta_t = hop * T time units apart.
Parameters
nNumber of sample of the input signal.
p0The first element of the range of slices to calculate. If
Nonethen it is set top_min, which is the smallest possible slice.p1The end of the array. If
Nonethenp_max(n)is used.k_offsetIndex of first sample (t = 0) in
x.
Notes
Note that the returned array is cached together with the method's call parameters to avoid unnecessary recalculations.
See also
- ShortTimeFFT
Class this method belongs to.
- T
Sampling interval of input signal and of the window (
1/fs).- delta_t
Time increment of STFT (
hop*T)- fs
Sampling frequency (being
1/T)- hop
Time increment in signal samples for sliding window.
- nearest_k_p
Nearest sample index k_p for which t[k_p] == t[p] holds.
Aliases
-
scipy.signal.ShortTimeFFT.t