Skip to content

signal.Dft.Function.dftReal

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

dsp-collection / signal/Dft / dftReal

Function: dftReal()

function dftReal(x): ComplexArray;

Defined in: signal/Dft.ts:82

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

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