scipy.signal.ShortTimeFFT.fft_mode — SciPy v1.15.3 Manual (original) (raw)
scipy.signal.ShortTimeFFT.
property ShortTimeFFT.fft_mode#
Mode of utilized FFT (‘twosided’, ‘centered’, ‘onesided’ or ‘onesided2X’).
It can have the following values:
‘twosided’:
Two-sided FFT, where values for the negative frequencies are in upper half of the array. Corresponds to fft.
‘centered’:
Two-sided FFT with the values being ordered along monotonically increasing frequencies. Corresponds to applyingfftshift to fft.
‘onesided’:
Calculates only values for non-negative frequency values. Corresponds to rfft.
‘onesided2X’:
Like onesided, but the non-zero frequencies are doubled ifscaling is set to ‘magnitude’ or multiplied by sqrt(2)
if set to ‘psd’. If scaling is None
, setting fft_mode to_onesided2X_ is not allowed. If the FFT length mfft is even, the last FFT value is not paired, and thus it is not scaled.
Note that onesided and onesided2X do not work for complex-valued signals or complex-valued windows. Furthermore, the frequency values can be obtained by reading the f property, and the number of samples by accessing the f_ptsproperty.
See also
Width of the frequency bins of the STFT.
Frequencies values of the STFT.
Width of the frequency bins of the STFT.
True if a one-sided FFT is used.
Normalization applied to the window function
Class this property belongs to.