comparison dsp/signalconditioning/DFProcess.h @ 503:b1f72e469ec8

Style fixes: avoid unsigned, fix formatting
author Chris Cannam <cannam@all-day-breakfast.com>
date Wed, 05 Jun 2019 11:18:11 +0100
parents 701233f8ed41
children
comparison
equal deleted inserted replaced
502:162673c8f9de 503:b1f72e469ec8
22 */ 22 */
23 23
24 #ifndef QM_DSP_DFPROCESS_H 24 #ifndef QM_DSP_DFPROCESS_H
25 #define QM_DSP_DFPROCESS_H 25 #define QM_DSP_DFPROCESS_H
26 26
27 #include <stdio.h>
28 #include "FiltFilt.h" 27 #include "FiltFilt.h"
29 28
30 struct DFProcConfig{ 29 #include <stdio.h>
31 unsigned int length; 30
32 unsigned int LPOrd; 31 struct DFProcConfig
32 {
33 int length;
34 int LPOrd;
33 double *LPACoeffs; 35 double *LPACoeffs;
34 double *LPBCoeffs; 36 double *LPBCoeffs;
35 unsigned int winPre; 37 int winPre;
36 unsigned int winPost; 38 int winPost;
37 double AlphaNormParam; 39 double AlphaNormParam;
38 bool isMedianPositive; 40 bool isMedianPositive;
39 float delta; //delta threshold used as an offset when computing the smoothed detection function 41 float delta; //delta threshold used as an offset when computing the smoothed detection function
40 42
41 DFProcConfig() : 43 DFProcConfig() :