-
Notifications
You must be signed in to change notification settings - Fork 0
signal.Dft.Function.dftSingle
Christian d'Heureuse edited this page Jun 7, 2026
·
2 revisions
dsp-collection / signal/Dft / dftSingle
function dftSingle(
x,
relativeFrequency,
direction): MutableComplex;Defined in: signal/Dft.ts:61
Computes the DFT on an array of complex numbers for a single frequency.
This is a reference implementation without any optimization. It's simple to understand, but slow.
The complex input values.
number
A frequency relative to x.length.
boolean
true for DFT (forward DFT), false for iDFT (inverse DFT).
A complex number that corresponds to the amplitude and phase of the frequency component.