Function fft

  • Calculate the unnormalized forward discrete Fourier transform.

    Parameters

    • realIn: Float64Array

      Real components of the signal.

    • Optional imagIn: Float64Array

      Imaginary components of the signal (all zeros assumed if missing).

    Returns [Float64Array, Float64Array]

    Array of [real coefficients, imaginary coefficients].