uk.ac.ed.ph.signal
Class Hamming

java.lang.Object
  extended by uk.ac.ed.ph.signal.Window
      extended by 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 uk.ac.ed.ph.signal.Window
getWeight, setLength
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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