Chalkboard - v3.0.4
    Preparing search index...

    Function fftshift

    • 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.

      Parameters

      Returns ChalkboardComplex[]

      const spectrum = Chalkboard.calc.fft([1, 0, -1, 0]);
      const centered = Chalkboard.calc.fftshift(spectrum); // Centers the zero-frequency component