Windowing

Provides a demonstration of the various windowing function available in JDSP

Boxcar Window

Image
                    
int len = 51;

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

BoxCar w2 = new BoxCar(len, false); // For asymmetric
double[] out = w2.getWindow();
                    
                  

General Cosine Window

Image
                    
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();
                    
                  

Hamming Window

Image
                    
int len = 51;

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

Hamming w2 = new Hamming(len, false); // For asymmetric
double[] out = w2.getWindow();
                    
                  

Hanning Window

Image
                    
int len = 51;

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

BoxCar w2 = new BoxCar(len, false); // For asymmetric
double[] out = w2.getWindow();
                    
                  

Blackman Window

Image
                    
int len = 51;

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

Blackman w2 = new Blackman(len, false); // For asymmetric
double[] out = w2.getWindow();
                    
                  

Blackman-Harris Window

Image
                    
int len = 51;

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

BlackmanHarris w2 = new BlackmanHarris(len, false); // For asymmetric
double[] out = w2.getWindow();
                    
                  

Poisson Window

Image
                    
int len = 51;

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

Poisson w2 = new Poisson(len, false); // For asymmetric
double[] out = w2.getWindow();
                    
                  

Gaussian Window

Image
                    
int len = 51;
int std = 7;

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

Gaussian w2 = new Gaussian(len, std, false); // For asymmetric
double[] out = w2.getWindow();
                    
                  

Flat Top Window

Image
                    
int len = 51;

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

FlatTop w2 = new FlatTop(len, false); // For asymmetric
double[] out = w2.getWindow();
                    
                  

Nuttall Window

Image
                    
int len = 51;

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

Nuttall w2 = new Nuttall(len, false); // For asymmetric
double[] out = w2.getWindow();
                    
                  

Triangular Window

Image
                    
int len = 51;

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

Triangular w2 = new Triangular(len, false); // For asymmetric
double[] out = w2.getWindow();
                    
                  

Tukey Window

Image
                    
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();
                    
                  

Bartlett Window

Image
                    
int len = 51;

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

Bartlett w2 = new Bartlett(len, false); // For asymmetric
double[] out = w2.getWindow();
                    
                  

Bartlett-Hann Window

Image
                    
int len = 51;

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

BartlettHann w2 = new BartlettHann(len, false); // For asymmetric
double[] out = w2.getWindow();
                    
                  

Bohman Window

Image
                    
int len = 51;

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

Bohman w2 = new Bohman(len, false); // For asymmetric
double[] out = w2.getWindow();
                    
                  

Kaiser Window

Image
                    
int len = 10;
double beta = 14;

Kaiser w1 = new Kaiser(len); // For Symmetric
double[] out = w1.getWindow(beta);

Kaiser w2 = new Kaiser(len, false); // For asymmetric
double[] out = w2.getWindow(beta);