Skip to content

General Cosine Window

Sambit Paul edited this page Dec 2, 2023 · 4 revisions

general_cosine

Symmetricity parameter is a boolean with the following effect:

  • TRUE : generates a symmetric window, for use in filter design
  • FALSE : generates a periodic window, for use in spectral analysis

The parameters for this window are as follows:

  • Window Length ⇨ 51
  • Weights ⇨ [1, 1.942604, 1.340318, 0.440811, 0.043097]
Code
int len = 51;
double[] weights = {1, 1.942604, 1.340318, 0.440811, 0.043097};

GeneralCosine w1 = new GeneralCosine(len, weights); // For symmetric
double[] out = w1.getWindow();

GeneralCosine w2 = new GeneralCosine(len, weights, false); // For asymmetric
double[] out = w2.getWindow();
Clone this wiki locally