|
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.LowPassFilter
public class LowPassFilter
A low-pass filter.
Field Summary | |
---|---|
protected float |
output
The last output. |
protected float |
tau
The time constant. |
Constructor Summary | |
---|---|
LowPassFilter(float tau,
float output)
Creates a new instance of LowPassFilter with the given time constant and the given last output. |
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 float output
protected float tau
Constructor Detail |
---|
public LowPassFilter(float tau, float output)
tau
- The time constant.output
- The last output.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 |