{ } Raw JSON

bundles / scipy 1.17.1 / scipy / signal / _short_time_fft / ShortTimeFFT / t

function

scipy.signal._short_time_fft:ShortTimeFFT.t

source: /scipy/signal/_short_time_fft.py :1942

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

n

Number of sample of the input signal.

p0

The first element of the range of slices to calculate. If None then it is set to p_min, which is the smallest possible slice.

p1

The end of the array. If None then p_max(n) is used.

k_offset

Index 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