Skip to content

Tukey Window

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

tukey

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
  • Alpha ⇨ Shape parameter of the Tukey window
Code
int len = 51;
double alpha = 0.5;

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

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