ifftshift#
- class saiunit.fft.ifftshift(x, axes=None, **kwargs)#
Inverse of
saiunit.fft.fftshift().Unit-aware implementation of
numpy.fft.ifftshift(). The unit of the input is preserved in the output.- Parameters:
- Returns:
An inverse-shifted copy of
xwith the same unit.- Return type:
Quantity|Array|ndarray|bool|number|bool|int|float|complex
See also
saiunit.fft.fftshiftShift zero-frequency component to the centre.
saiunit.fft.fftfreqReturn sample frequencies for the DFT.
Examples
>>> import saiunit as u >>> import saiunit.fft as sufft >>> freq = sufft.fftfreq(4, 1.0 * u.second) >>> shifted = sufft.fftshift(freq) >>> recovered = sufft.ifftshift(shifted)