Skip to content

signal.Fft.Function.fftReal

Christian d'Heureuse edited this page Jun 7, 2026 · 2 revisions

dsp-collection / signal/Fft / fftReal

Function: fftReal()

function fftReal(x): ComplexArray;

Defined in: signal/Fft.ts:169

Computes the FFT of an array of real numbers and returns the complex result.

This version is not optimized for real numbers. The input array can have any size.

Parameters

x

ArrayLike<number>

The input values (samples).

Returns

ComplexArray

An array of complex numbers. It has the same size as the input array. The upper half of the array contains complex conjugates of the lower half.

Clone this wiki locally