SignalUtils.CosineTappered Method

TVec CosineTappered(TVec Src, Double Percent, Int32 Index, Int32 Len)

Cosine tappered window.

#NameTypeDescription
1SrcTVecsource TVec
2PercentDoublescalar
3IndexInt32start index
4LenInt32element 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