Skip to content

signal.WindowFunctions.Function.calculateCoherentGain

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

dsp-collection / signal/WindowFunctions / calculateCoherentGain

Function: calculateCoherentGain()

function calculateCoherentGain(windowFunction, n): number;

Defined in: signal/WindowFunctions.ts:162

Calculates the coherent gain of a window function ("pediodic" window, used for DFT).

The returned value is the arithmetic mean of the function values, which is the same as the amplitude of the middle component (DC value) in the spectrum of the window function. The value should be about the same as WindowFunctionDescr.gain.

Parameters

windowFunction

WindowFunction

n

number

Returns

number

Clone this wiki locally