Chalkboard - v3.0.4
    Preparing search index...

    Function ifftshift

    • Calculates the inverse FFT shift of an array, which undoes the effect of fftshift by moving the zero-frequency component back to the beginning of the array.

      Parameters

      Returns ChalkboardComplex[]

      const spectrum = Chalkboard.calc.fftshift(Chalkboard.calc.fft([1, 0, -1, 0]));
      const restored = Chalkboard.calc.ifftshift(spectrum); // Restores the original frequency ordering