|
The Physiologist's Friend Simulation API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.unizh.ini.friend.simulation.filter.HighPassFilter
public class HighPassFilter
A high-pass filter.
Field Summary | |
---|---|
protected LowPassFilter |
lowPass
The corresponding low-pass filter |
Constructor Summary | |
---|---|
HighPassFilter(float tau,
float output)
Creates a new instance of HighPassFilter with the given time constant and the given last output of the corresponding low-pass filter. |
Method Summary | |
---|---|
float |
filter(float input,
float dt)
Returns the output of the filter based on the given input and the passed time. |
float |
getTau()
Getter for property tau. |
void |
setTau(float tau)
Setter for property tau. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected LowPassFilter lowPass
Constructor Detail |
---|
public HighPassFilter(float tau, float output)
tau
- The time constant.output
- The last output of the corresponding low-pass filter.Method Detail |
---|
public float filter(float input, float dt)
filter
in interface Filter
input
- The input value.dt
- The time step.
public float getTau()
public void setTau(float tau)
tau
- New value of property tau.
|
http://www.ini.unizh.ch/~tobi/friend | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |