pydsm.ft.fft_centered

pydsm.ft.fft_centered(x, fs=1)

Computes a centered FFT.

Provides an FFT function where the output vector has the zero frequency at its center. This is more suitable for plotting.

Parameters
xarray_like

1-D sequence to compute the FFT upon

Returns
——
Xndarray

samples of the DFT of the input vector

ffndarray

vector of frequencies corresponding to the samples in X

Other Parameters
fsreal, optional

sample frequency for the input vector (defaults to 1)