|
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.BandpassFilter
public class BandpassFilter
A first-order bandpass IIR filter based on a series of first lowpass and then highpass.
Field Summary |
---|
Fields inherited from class net.sf.jaer.util.filter.Filter |
---|
initialized, lastTime, tauMs, TICK_PER_MS |
Constructor Summary | |
---|---|
BandpassFilter()
Creates a new instance of BandpassFilter with defaults time constant values. |
|
BandpassFilter(float tauLowMs,
float tauHighMs)
Create a new instance of BandpassFilter with specified low and high pass filter time constants. |
Method Summary | |
---|---|
float |
filter(float val,
int time)
Filters the incoming signal according to /br
float ret= hpFilter.filter(lpFilter.filter(val,time),time);
|
float |
get3dBCornerFrequencyHz()
|
float |
get3dBPoleFrequencyHz()
|
float |
getTauMsHigh()
|
float |
getTauMsLow()
|
float |
getValue()
|
void |
set3dBCornerFrequencyHz(float hz)
Set the highpass corner frequency |
void |
set3dBPoleFrequencyHz(float hz)
Set the lowpass (rolloff) corner frequency |
void |
setInternalValue(float value)
Sets the internal value for initializing the filter |
void |
setTauMsHigh(float tauMsHigh)
Sets the highpass time constant |
void |
setTauMsLow(float tauMsLow)
Sets the lowpass time constant |
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 |
Constructor Detail |
---|
public BandpassFilter()
public BandpassFilter(float tauLowMs, float tauHighMs)
tauLowMs
- the averaging time in ms.tauHighMs
- the forgetting time in ms.Method Detail |
---|
public float filter(float val, int time)
float ret= hpFilter.filter(lpFilter.filter(val,time),time);
val
- the incoming sampletime
- the time of the sample in us
public java.lang.String toString()
toString
in class java.lang.Object
public float getTauMsLow()
public void setTauMsLow(float tauMsLow)
tauMsLow
- time constant in mspublic float getTauMsHigh()
public void setTauMsHigh(float tauMsHigh)
tauMsHigh
- the time constant of the highpasspublic void setInternalValue(float value)
Filter
value
- the valuepublic float getValue()
public void set3dBCornerFrequencyHz(float hz)
hz
- the frequency in Hzpublic void set3dBPoleFrequencyHz(float hz)
hz
- the frequency in Hzpublic float get3dBCornerFrequencyHz()
public float get3dBPoleFrequencyHz()
|
jAER project on SourceForge | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |