Skip to content

signal.Dft.Function.dftRealHalf

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

dsp-collection / signal/Dft / dftRealHalf

Function: dftRealHalf()

function dftRealHalf(x): ComplexArray;

Defined in: signal/Dft.ts:98

Computes the lower half 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's size is Math.ceil(x.length / 2).

Clone this wiki locally