Class Hamming
- java.lang.Object
-
- com.github.psambit9791.jdsp.windows._Window
-
- com.github.psambit9791.jdsp.windows.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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]
getWindow()
Generates and returns the Hamming Window-
Methods inherited from class com.github.psambit9791.jdsp.windows._Window
applyInverseWindow, applyWindow, extend, lenGuard, truncate
-
-
-
-
Constructor Detail
-
Hamming
public Hamming(int len, boolean sym) throws IllegalArgumentException
This constructor initialises the Hamming class.- Parameters:
len
- Length of the windowsym
- 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.
-
-