Skip to content

signal.Dft.Function.dft

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

dsp-collection / signal/Dft / dft

Function: dft()

function dft(x, direction): ComplexArray;

Defined in: signal/Dft.ts:116

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

Parameters

x

ComplexArray

The complex input values.

direction

boolean

true for DFT (forward DFT), false for iDFT (inverse DFT).

Returns

ComplexArray

An array of complex numbers. It has the same size as the input array.

Clone this wiki locally