|
jAER project on SourceForge | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jaer.util.filter.Filter
net.sf.jaer.util.filter.LowpassFilter
public class LowpassFilter
A first-order lowpass IIR filter. The first value filtered initializes the filter to the value and stores the first time as reference.
Field Summary | |
---|---|
protected float |
lastVal
The last value |
protected float |
lpVal
The current state of the filter |
Fields inherited from class net.sf.jaer.util.filter.Filter |
---|
initialized, lastTime, tauMs, TICK_PER_MS |
Constructor Summary | |
---|---|
LowpassFilter()
|
Method Summary | |
---|---|
float |
filter(float val,
int time)
apply the filter. |
float |
getValue()
|
void |
setInternalValue(float value)
Sets the internral value; used to initialize filter |
java.lang.String |
toString()
|
Methods inherited from class net.sf.jaer.util.filter.Filter |
---|
get3dBFreqHz, getLastTime, getTauMs, set3dBFreqHz, setTauMs |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected float lpVal
protected float lastVal
Constructor Detail |
---|
public LowpassFilter()
Method Detail |
---|
public float filter(float val, int time)
Filter
val
- the new input valuetime
- the time in us - note units here, microseconds!
public java.lang.String toString()
toString
in class java.lang.Object
public void setInternalValue(float value)
value
- the valuepublic float getValue()
|
jAER project on SourceForge | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |