uk.ac.ed.ph.signal
Class Hamming
java.lang.Object
uk.ac.ed.ph.signal.Window
uk.ac.ed.ph.signal.Hamming
public class Hamming
- extends Window
Class to implement the Hamming window of 0.54-0.46*cos(2pi t)
Constructor Summary |
Hamming()
Default constrcuor to form window on zero length |
Hamming(int n)
Constructor to for a Hamming window of specifed length |
Method Summary |
double |
getWeight(double t)
methdo to calcualte the Hamming window |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Hamming
public Hamming()
- Default constrcuor to form window on zero length
Hamming
public Hamming(int n)
- Constructor to for a Hamming window of specifed length
- Parameters:
n
- length of the window
getWeight
public double getWeight(double t)
- methdo to calcualte the Hamming window
- Specified by:
getWeight
in class Window
- Parameters:
t
- normnalsied time
- Returns:
double
the window weight