uk.ac.ed.ph.signal
Class Bartlett
java.lang.Object
uk.ac.ed.ph.signal.Window
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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