uk.ac.ed.ph.signal
Class Window

java.lang.Object
  extended by uk.ac.ed.ph.signal.Window
Direct Known Subclasses:
Bartlett, Blackman, Hamming, Hanning

public abstract class Window
extends Object

Abstarct class to perform Window function for one-dimensional signal processing.


Constructor Summary
Window()
           
 
Method Summary
abstract  double getWeight(double t)
          Method to return the window weight for double parameter, but be in the range 0 -> 1.0.
 double getWeight(int i)
          Method to return the window weight for integer parameter, but be in the range 0 -> length-1
 void setLength(int l)
          Method to set the window length
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Window

public Window()
Method Detail

setLength

public void setLength(int l)
Method to set the window length

Parameters:
l - the window length

getWeight

public double getWeight(int i)
Method to return the window weight for integer parameter, but be in the range 0 -> length-1

Parameters:
i - the element index
Returns:
double the window weight

getWeight

public abstract double getWeight(double t)
Method to return the window weight for double parameter, but be in the range 0 -> 1.0.

Parameters:
t - the normalsied time
Returns:
double the window weight