jAER project on SourceForge

net.sf.jaer.util.filter
Class HighpassFilter

java.lang.Object
  extended by net.sf.jaer.util.filter.Filter
      extended by net.sf.jaer.util.filter.HighpassFilter

public class HighpassFilter
extends Filter

A first-order highpass IIR filter.


Field Summary
 
Fields inherited from class net.sf.jaer.util.filter.Filter
initialized, lastTime, tauMs, TICK_PER_MS
 
Constructor Summary
HighpassFilter()
           
 
Method Summary
 float filter(float val, int time)
          apply the filter.
 float getTauMs()
           
 float getValue()
           
 void setInternalValue(float value)
          Sets the internal value for initializing the filter
 void setTauMs(float tauMs)
           
 java.lang.String toString()
           
 
Methods inherited from class net.sf.jaer.util.filter.Filter
get3dBFreqHz, getLastTime, set3dBFreqHz
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HighpassFilter

public HighpassFilter()
Method Detail

filter

public float filter(float val,
                    int time)
Description copied from class: Filter
apply the filter.

Parameters:
val - the new input value
time - the new input time - in ticks (us)
Returns:
the new filter output value

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

setInternalValue

public void setInternalValue(float value)
Description copied from class: Filter
Sets the internal value for initializing the filter

Parameters:
value - the value

getValue

public float getValue()
Returns:
present value of output of filter

setTauMs

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

getTauMs

public float getTauMs()
Overrides:
getTauMs in class Filter

jAER project on SourceForge