uk.ac.ed.ph.signal
Class Blackman

java.lang.Object
  extended by uk.ac.ed.ph.signal.Window
      extended by uk.ac.ed.ph.signal.Blackman

public class Blackman
extends Window

Class to implement the Blackman window of 0.42 - 0.5*cos(2pi t) + 0.08*cos(4pi t)


Constructor Summary
Blackman()
          Default constrcuor to form window on zero length
Blackman(int n)
          Constructor to for a Blackman window of specifed length
 
Method Summary
 double getWeight(double x)
          method to calcualte the Blackman 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

Blackman

public Blackman()
Default constrcuor to form window on zero length


Blackman

public Blackman(int n)
Constructor to for a Blackman window of specifed length

Parameters:
n - length of the window
Method Detail

getWeight

public double getWeight(double x)
method to calcualte the Blackman window

Specified by:
getWeight in class Window
Parameters:
x - normalsied time
Returns:
double the window weight