comparison dsp/signalconditioning/DFProcess.h @ 410:c5e1b25d5177

Fix some uninitialised values
author Chris Cannam <c.cannam@qmul.ac.uk>
date Mon, 07 Sep 2015 14:00:30 +0100
parents f5b5f64835b9
children ca658c7215a9
comparison
equal deleted inserted replaced
409:1f1999b0f577 410:c5e1b25d5177
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