SignalUtils.CosineTappered Method

function CosineTappered(const Src: TVec; Percent: Double; Index: Integer; Len: Integer): TVec;

Cosine tappered window.

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

Returns: TVec

Remarks:

Applies Cosine tappered 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. When percent parameter is 100, the CosineTappered window becomes equal to the hanning window. When the Percent parameter is 0, then the window remains rectangular (box car).

See Also: SignalUtils.Kaiser, SignalUtils.SignalWindow