Skip to content

signal.Fft.Function.iFftRealHalfSimple

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

dsp-collection / signal/Fft / iFftRealHalfSimple

Function: iFftRealHalfSimple()

function iFftRealHalfSimple(
   x, 
   len, 
   inclNyquist?): Float64Array;

Defined in: signal/Fft.ts:285

Computes the inverse FFT for a real signal. Non-optimized version.

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

This is an inverse function of fftRealSpectrum().

Parameters

x

ComplexArray

An array of complex numbers that define the amplitudes and phases of the sinusoidal frequency components. This corresponds to the normalized lower half of the FFT output. For even output signal lengths, it can include an additional entry for the nyquist frequency component. If this array is longer than required, the extra values are ignored. If it is shorter, the missing values are assumed to be zero.

len

number

Output signal length.

inclNyquist?

boolean = false

If true and len is even, the value at x[len / 2] is included in the inverse FFT.

Returns

Float64Array

An array of real numbers that represent the signal which is the sum of the sinusoidal components.

Clone this wiki locally