This documentation is for development version 0.18.dev0.

mne.time_frequency.istft

mne.time_frequency.istft(X, tstep=None, Tx=None)[source]

ISTFT Inverse Short-Term Fourier Transform using a sine window.

Parameters:
X : array, shape (n_signals, wsize / 2 + 1, n_step)

The STFT coefficients for positive frequencies

tstep : int

step between successive windows in samples (must be a multiple of 2, a divider of wsize and smaller than wsize/2) (default: wsize/2)

Tx : int

Length of returned signal. If None Tx = n_step * tstep

Returns:
x : array, shape (Tx,)

vector containing the inverse STFT signal

See also

stft

Examples

x = istft(X) x = istft(X, tstep)