| [ Web Proxy ] |
| Viewing: https://numpy.org/doc/stable/reference/generated/../random/../generated/numpy.fft.ifftshift.html | [Back] [Original] |
The inverse of fftshift. Although identical for even-length x, the
functions differ by one sample for odd-length x.
Input array.
Axes over which to calculate. Defaults to None, which shifts all axes.
The shifted array.
See also
fftshiftShift zero-frequency component to the center of the spectrum.
Examples
>>> import numpy as np
>>> freqs = np.fft.fftfreq(9, d=1./9).reshape(3, 3)
>>> freqs
array([[ 0., 1., 2.],
[ 3., 4., -4.],
[-3., -2., -1.]])
>>> np.fft.ifftshift(np.fft.fftshift(freqs))
array([[ 0., 1., 2.],
[ 3., 4., -4.],
[-3., -2., -1.]])
| Web Proxy Viewer | New URL | Original Page |