Chalkboard - v3.0.4
    Preparing search index...

    Function fftfreq

    • Calculates the FFT frequencies for a given FFT length and sample spacing, which are the frequencies corresponding to the output of the FFT.

      Parameters

      • n: number

        FFT length

      • Optionald: number = 1

        Sample spacing

      Returns number[]

      const result = Chalkboard.calc.fftfreq(8, 0.5); // Returns the eight Fourier sample frequencies