Calculates the FFT shift of an array of numbers or complex numbers, which rearranges the output of the FFT by moving the zero-frequency component to the center of the array.
The array
const spectrum = Chalkboard.calc.fft([1, 0, -1, 0]);const centered = Chalkboard.calc.fftshift(spectrum); // Centers the zero-frequency component Copy
const spectrum = Chalkboard.calc.fft([1, 0, -1, 0]);const centered = Chalkboard.calc.fftshift(spectrum); // Centers the zero-frequency component
Calculates the FFT shift of an array of numbers or complex numbers, which rearranges the output of the FFT by moving the zero-frequency component to the center of the array.