Skip to content

signal.Dft.Function.iDftRealSpectrum

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

dsp-collection / signal/Dft / iDftRealSpectrum

Function: iDftRealSpectrum()

function iDftRealSpectrum(x, len): Float64Array;

Defined in: signal/Dft.ts:168

Computes the inverse DFT of a complex spectrum and returns the result as an array of real numbers.

This is the inverse function of dftRealSpectrum() with inclNyquist == true.

This is a reference implementation without any optimization. It's simple to understand, but slow.

Parameters

x

ComplexArray

An array of complex numbers that define the amplitudes and phases of the sinusoidal frequency components.

len

number

Output signal length.

Returns

Float64Array

The sampled signal that is the sum of the sinusoidal components.

Clone this wiki locally