window_kaiser

Creation of a Kaiser window.

Namespace: dsp::filter

Prototype

Vecf window_kaiser(float atten_db, float df, bool symetrical=true)

Parameters

atten_dbAttenuation in dB in the stop-band (should be a positive value).
dfTransition bandwidth (normalized to the sampling frequency)
symetricalIf 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 window coefficients.

Description

Example: creation of a window with 60 dB of attenuation


  // Spécifications :
  // - 60 dB d'atténuation,
  // - largeur du lobe principale = 1/10 de la fréquence d'échantillonnage
  soit x = fenêtre_kaiser(60, 0.1);
  soit [fr, xm] = frmag(x);

  Figure f1, f2;
  f1.plot(x, "b-o");
  f2.plot(fr, mag2db(xm / xm.valeur_max()));

Time domain

Spectrum

See also

window_kaiser1(), kaiser_param()