Return the filter coefficients of a Dolph-Chebyshev window.
chebwin(n, at = 100)
Chebyshev window, returned as a vector. If you specify a one-point
window (n = 1)
, the value 1 is returned.
Window length, specified as a positive integer.
Stop-band attenuation in dB. Default: 100.
André Carezia, acarezia@uol.com.br.
Conversion to R by Geert van Boxtel, G.J.M.vanBoxtel@gmail.com.
The window is described in frequency domain by the expression:
Cheb(m - 1, Beta * cos(\pi * k / m))
W(k) = ------------------------------------
Cheb(m - 1, Beta)
with
Beta = cosh(1 / (m - 1) * acosh(10^(at / 20))
and and Note that the denominator in W(k) above is not computed, and after the inverse Fourier transform the window is scaled by making its maximum value unitary.
cw <- chebwin(64)
plot (cw, type = "l", xlab = "Samples", ylab =" Amplitude")
Run the code above in your browser using DataLab