33 DigitalFilter (
unsigned int bufsize = 5,
double T = 0,
double lsq = 0.2,
34 int iir_thr = 10000,
double iir_coeff_prev = 0.5,
35 double iir_coeff_new = 0.5 );
39 void setSettings(
unsigned int bufsize,
double T,
double lsq,
40 int iir_thr,
double iir_coeff_prev,
double iir_coeff_new );
46 int filter1(
int newValue );
49 int filterRC(
int newVal );
52 int median(
int newval );
55 int leastsqr(
int newval );
58 int filterIIR(
int newval );
68 void add(
int newValue );
79 inline double middle()
88 friend std::ostream& operator<<(std::ostream& os,
const DigitalFilter& d);
89 friend std::ostream& operator<<(std::ostream& os,
const DigitalFilter* d);
96 double secondLevel(
double val );
104 typedef std::deque<int> FIFOBuffer;
106 unsigned int maxsize;
108 typedef std::vector<int> MedianVector;
112 typedef std::vector<double> Coeff;