Simple biquad filter
Dependents: EMG_Filter frdm_Motor_V2_2 frdm_Motor_V2_2 frdm_Motor_V2_3 ... more
biquadFilter.h@0:dca6a1d16911, 2015-08-30 (annotated)
- Committer:
- tomlankhorst
- Date:
- Sun Aug 30 12:37:35 2015 +0000
- Revision:
- 0:dca6a1d16911
- Child:
- 1:b9512f750fb6
Initial commit of simple biquad filter
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
tomlankhorst | 0:dca6a1d16911 | 1 | #ifndef _BIQUADFILTER_H_ |
tomlankhorst | 0:dca6a1d16911 | 2 | #define _BIQUADFILTER_H_ |
tomlankhorst | 0:dca6a1d16911 | 3 | |
tomlankhorst | 0:dca6a1d16911 | 4 | class biquadFilter { |
tomlankhorst | 0:dca6a1d16911 | 5 | const float a0, a1, a2, b1, b2; |
tomlankhorst | 0:dca6a1d16911 | 6 | float z1, z2; |
tomlankhorst | 0:dca6a1d16911 | 7 | public: |
tomlankhorst | 0:dca6a1d16911 | 8 | biquadFilter( double, double, double, double, double ); |
tomlankhorst | 0:dca6a1d16911 | 9 | double step( double ); |
tomlankhorst | 0:dca6a1d16911 | 10 | }; |
tomlankhorst | 0:dca6a1d16911 | 11 | |
tomlankhorst | 0:dca6a1d16911 | 12 | #endif |