Class Hamming


  • public class Hamming
    extends _Window

    Hamming Window

    The Hamming window is a taper formed by using a raised cosine with non-zero endpoints, optimized to minimize the nearest side lobe.

    Version:
    1.0
    Author:
    Sambit Paul
    • Constructor Detail

      • Hamming

        public Hamming​(int len,
                       boolean sym)
                throws IllegalArgumentException
        This constructor initialises the Hamming class.
        Parameters:
        len - Length of the window
        sym - Whether the window is symmetric
        Throws:
        IllegalArgumentException - if window length is less than 1
      • Hamming

        public Hamming​(int len)
                throws IllegalArgumentException
        This constructor initialises the Hamming class. Symmetricity is set to True.
        Parameters:
        len - Length of the window
        Throws:
        IllegalArgumentException - if window length is less than 1.
    • Method Detail

      • getWindow

        public double[] getWindow()
        Generates and returns the Hamming Window
        Specified by:
        getWindow in class _Window
        Returns:
        double[] the generated window