Skip to content

signal.Fft.Function.iFftRealHalf

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

dsp-collection / signal/Fft / iFftRealHalf

Function: iFftRealHalf()

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

Defined in: signal/Fft.ts:382

Computes the inverse FFT for a real signal. General version.

If len is even, the computation is faster. And if len is a power of 2, it's even faster.

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. 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, 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