You are here: Symbol Reference > SignalUtils Namespace > Functions > SignalUtils.Hanning Function
DSP Master VCL
ContentsIndex
PreviousUpNext
SignalUtils.Hanning Function

Hanning window.

Pascal
function Hanning(const Src: TVec; WindowMode: TSignalWindowMode): TVec; overload;

Applies Hanning window to Src. Window functions are applied to the signal prior to conversion to frequency domain with the FFT algorithm, to reduce the spectral leakage. Their side-effect is a lower frequency resolution. Hanning window is very widely used and sufficient for most applications. The equation for the Hanning window can be found in [1] p. 249: 

w[i] = 0.5*(1-cos(2*Pi*i/(n-1)) 

0 < i < n-1 

References:  

[1] Digital signal processing, Vinay K. Ingle and John G. Proakis, Brooks-Cole, 2000.

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!