uk.ac.ed.ph.signal
Class Bartlett

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

public class Bartlett
extends Window

Class to implement the Bartlett (or triangle) window


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

Bartlett

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


Bartlett

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

Parameters:
n - length of the window
Method Detail

getWeight

public double getWeight(double t)
methdo to calcualte the Bartlett window

Specified by:
getWeight in class Window
Parameters:
t - normnalsied time
Returns:
double the window weight