SignalUtils.BlackmanHarris Method

function BlackmanHarris(const Src: TVec; WindowMode: TSignalWindowMode): TVec;

Blackman-Harris window.

#NameTypeDescription
1SrcTVec
2WindowModeTSignalWindowMode

Returns: TVec

Remarks:

Applies BlackmanHarris 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.

w[n] := 0.42323 - 0.49755*cos(2*Pi*n/(n-1)) + 0.07922*cos(4*Pi*n/(n-1))

0 <= n <= M - 1

See Also: SignalUtils.BlackmanExact, SignalUtils.Kaiser, SignalUtils.SignalWindow

Indexed: function BlackmanHarris(const Src: TVec; WindowMode: TSignalWindowMode; Index: Integer; Len: Integer): TVec;

Blackman Harris window.

#NameTypeDescription
1SrcTVec
2WindowModeTSignalWindowMode
3IndexIntegerstart index
4LenIntegerelement count

Returns: TVec

Remarks:

Applies exact Blackman Harris window to Src vector from element at Index to element at Index + Len - 1.