bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / signal / _short_time_fft / ShortTimeFFT / t
function
scipy.signal._short_time_fft:ShortTimeFFT.t
source: build-install/usr/lib/python3.14/site-packages/scipy/signal/_short_time_fft.py:1978
Signature
def t(self, n: int, p0: int | None = None, p1: int | None = None, k_offset: int = 0) → np.ndarraySummary
Times of STFT for an input signal with n samples.
Extended Summary
Returns a 1d array with times of the stft values with the same parametrization. Note that the slices are delta_t = hop * T time units apart.
Parameters
n: intNumber of samples of the input signal.
p0: int, optionalThe first element of the range of slices to calculate. If
Nonethen it is set top_min, which is the smallest possible slice.p1: int, optionalThe end of the array. If
Nonethenp_max(n)is used.k_offset: intIndex of first sample (t = 0) in
x.
Returns
t: ndarray1D array of times of the STFT slices from
p0top1- 1.
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