![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Fertig
Fork of RT2_P3_students by
IIR_filter.h@0:78ca29b4c49e, 2018-04-03 (annotated)
- Committer:
- altb
- Date:
- Tue Apr 03 08:47:41 2018 +0000
- Revision:
- 0:78ca29b4c49e
- Child:
- 1:a30512c3ac73
Cuboid Lab RT2 FS 2018
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
altb | 0:78ca29b4c49e | 1 | class IIR_filter{ |
altb | 0:78ca29b4c49e | 2 | public: |
altb | 0:78ca29b4c49e | 3 | |
altb | 0:78ca29b4c49e | 4 | //IIR_filter(float *A[],float *B[]); |
altb | 0:78ca29b4c49e | 5 | IIR_filter(float T,float Ts); |
altb | 0:78ca29b4c49e | 6 | IIR_filter(float T,float Ts,float K); |
altb | 0:78ca29b4c49e | 7 | IIR_filter(float w0,float D, float Ts, float K); |
altb | 0:78ca29b4c49e | 8 | IIR_filter(float *,float *, int,int); |
altb | 0:78ca29b4c49e | 9 | |
altb | 0:78ca29b4c49e | 10 | float operator()(float u){ |
altb | 0:78ca29b4c49e | 11 | return filter(u); |
altb | 0:78ca29b4c49e | 12 | } |
altb | 0:78ca29b4c49e | 13 | virtual ~IIR_filter(); |
altb | 0:78ca29b4c49e | 14 | void reset(float); |
altb | 0:78ca29b4c49e | 15 | float filter(float); |
altb | 0:78ca29b4c49e | 16 | |
altb | 0:78ca29b4c49e | 17 | private: |
altb | 0:78ca29b4c49e | 18 | |
altb | 0:78ca29b4c49e | 19 | unsigned int nb; |
altb | 0:78ca29b4c49e | 20 | unsigned int na; |
altb | 0:78ca29b4c49e | 21 | float *B; |
altb | 0:78ca29b4c49e | 22 | float *A; |
altb | 0:78ca29b4c49e | 23 | float *uk; |
altb | 0:78ca29b4c49e | 24 | float *yk; |
altb | 0:78ca29b4c49e | 25 | float K; |
altb | 0:78ca29b4c49e | 26 | }; |