Mercurial > hg > qm-dsp
comparison dsp/signalconditioning/DFProcess.h @ 185:2ae4ceb76ac3
Fix some uninitialised values
author | Chris Cannam |
---|---|
date | Mon, 07 Sep 2015 14:00:30 +0100 |
parents | 715f779d0b4f |
children | ca658c7215a9 |
comparison
equal
deleted
inserted
replaced
184:76ec2365b250 | 185:2ae4ceb76ac3 |
---|---|
34 double *LPBCoeffs; | 34 double *LPBCoeffs; |
35 unsigned int winPre; | 35 unsigned int winPre; |
36 unsigned int winPost; | 36 unsigned int winPost; |
37 double AlphaNormParam; | 37 double AlphaNormParam; |
38 bool isMedianPositive; | 38 bool isMedianPositive; |
39 float Delta; //delta threshold used as an offset when computing the smoothed detection function | 39 float delta; //delta threshold used as an offset when computing the smoothed detection function |
40 | |
41 DFProcConfig() : | |
42 length(0), | |
43 LPOrd(0), | |
44 LPACoeffs(NULL), | |
45 LPBCoeffs(NULL), | |
46 winPre(0), | |
47 winPost(0), | |
48 AlphaNormParam(0), | |
49 isMedianPositive(false), | |
50 delta(0) | |
51 { | |
52 } | |
40 }; | 53 }; |
41 | 54 |
42 class DFProcess | 55 class DFProcess |
43 { | 56 { |
44 public: | 57 public: |
71 FilterConfig m_FilterConfigParams; | 84 FilterConfig m_FilterConfigParams; |
72 | 85 |
73 FiltFilt* m_FiltFilt; | 86 FiltFilt* m_FiltFilt; |
74 | 87 |
75 bool m_isMedianPositive; | 88 bool m_isMedianPositive; |
76 float m_Delta; //add delta threshold | 89 float m_delta; //add delta threshold |
77 }; | 90 }; |
78 | 91 |
79 #endif | 92 #endif |