branch for cuboid
Embed:
(wiki syntax)
Show/hide line numbers
IIR_filter.h
00001 #ifndef IIR_FILTER_H_ 00002 #define IIR_FILTER_H_ 00003 00004 class IIR_filter{ 00005 public: 00006 00007 IIR_filter(){}; 00008 IIR_filter(float T, float Ts); 00009 IIR_filter(float T, float Ts, float K); 00010 IIR_filter(float w0, float D, float Ts, float K); 00011 IIR_filter(float *b, float *a, int nb_, int na_); 00012 00013 float operator()(float u){ 00014 return filter((double)u); 00015 } 00016 virtual ~IIR_filter(); 00017 void reset(float); 00018 float filter(double); 00019 void setup(float,float,float); 00020 00021 private: 00022 00023 unsigned int nb; 00024 unsigned int na; 00025 double *B; 00026 double *A; 00027 double *uk; 00028 double *yk; 00029 double K; 00030 }; 00031 #endif
Generated on Fri Jul 29 2022 15:49:12 by
1.7.2