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