jAER project on SourceForge

net.sf.jaer.util.filter
Class Filter

java.lang.Object
  extended by net.sf.jaer.util.filter.Filter
Direct Known Subclasses:
BandpassFilter, HighpassFilter, LowpassFilter

public abstract class Filter
extends java.lang.Object

Base class for IIR filters.

Author:
tobi

Field Summary
protected  boolean initialized
          This flag is false until the filter sets it true on the first value.
protected  int lastTime
          The last timestamp used
protected  float tauMs
          The filter time constant in ms
 int TICK_PER_MS
          ticks per ms of input time
 
Constructor Summary
Filter()
           
 
Method Summary
 float get3dBFreqHz()
           
 int getLastTime()
          return last time filter was called.
 float getTauMs()
           
 void set3dBFreqHz(float freq)
           
 void setTauMs(float tauMs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TICK_PER_MS

public final int TICK_PER_MS
ticks per ms of input time

See Also:
Constant Field Values

tauMs

protected float tauMs
The filter time constant in ms


lastTime

protected int lastTime
The last timestamp used


initialized

protected boolean initialized
This flag is false until the filter sets it true on the first value.

Constructor Detail

Filter

public Filter()
Method Detail

getTauMs

public float getTauMs()

setTauMs

public void setTauMs(float tauMs)
Parameters:
tauMs - the time constant in ms

set3dBFreqHz

public void set3dBFreqHz(float freq)
Parameters:
freq - the 3dB corner frequency in Hz

get3dBFreqHz

public float get3dBFreqHz()
Returns:
3dB freq in Hz

getLastTime

public int getLastTime()
return last time filter was called. Can be used to look for negative time


jAER project on SourceForge