.
Fork of Cntrlol_Lib by
Embed:
(wiki syntax)
Show/hide line numbers
IIR_filter.h
00001 class IIR_filter{ 00002 public: 00003 00004 IIR_filter(float T, float Ts); 00005 IIR_filter(float T, float Ts, float K); 00006 IIR_filter(float w0, float D, float Ts, float K); 00007 IIR_filter(float *b, float *a, int nb_, int na_); 00008 00009 float operator()(float u){ 00010 return filter((double)u); 00011 } 00012 virtual ~IIR_filter(); 00013 void reset(float); 00014 float filter(double); 00015 00016 private: 00017 00018 unsigned int nb; 00019 unsigned int na; 00020 double *B; 00021 double *A; 00022 double *uk; 00023 double *yk; 00024 double K; 00025 };
Generated on Wed Jul 20 2022 13:09:12 by 1.7.2