stft

Computes the short time Fourier transform

  1. auto stft(Xs xs, size_t nperseg, size_t noverlap)
  2. auto stft(Xs xs, size_t nperseg)
    stft
    (
    alias windowFun = hann
    Xs
    )
    (
    Xs xs
    ,
    size_t nperseg = 256
    )
    if (
    isSlice!Xs &&
    DimensionCount!Xs == 1
    )

Parameters

xs Xs

input 1d slice with the shape (ntimes,)

nperseg size_t

(default 256) short-time frame width for each FFT segment

Return Value

Type: auto

comlex 2d slice (nframes, nfreqs=nperseg)

See Also

Meta