window_chebychev
Chebychev window creation.
Namespace: dsp::filter
Prototype
Vecf window_chebychev(int n, float atten_db, bool symetrical=true)
Parameters
n | Number of points. |
atten_db | Desired attenuation (in dB) on the stop-band. |
symetrical | If true, realization of window symetrical around its center point (which should be done for the FIR filter design), otherwise realization of a periodical window (which is better for spectral analysis applications). |
Returns
Column vector with the window coefficients (dimension of vector is n
)
Description
The Chebychev window has the property to give rise to constant ondulations in the frequency domain (si example below). The design is also very straigthforward for FIR filter design, because one has just to select the window order (number of coefficients), and the desired attenuation, and it is the main lobe width that play the role of adjustment variable.
Example: creation of a window with 60 dB of attenuation
Time domain
Spectrum
See also
design_fir_win(), Chebychev_T()