Mercurial > hg > aimc
annotate src/AGC.h @ 483:3673e3e67bab carfac_cpp
style
author | Ulf.Hammarqvist@gmail.com |
---|---|
date | Thu, 29 Mar 2012 19:43:36 +0000 |
parents | ea17c0e4e740 |
children | 715fc47a965e |
rev | line source |
---|---|
Ulf@477 | 1 #ifndef AGC_H_ |
Ulf@477 | 2 #define AGC_H_ |
Ulf@477 | 3 |
Ulf@479 | 4 #include "CARFAC_common_typedefs.h" |
Ulf@479 | 5 |
Ulf@477 | 6 class AGC_parameters { |
Ulf@477 | 7 public: |
Ulf@483 | 8 AGC_parameters() |
Ulf@483 | 9 { |
Ulf@483 | 10 n_stages_ = 4; // redundant? |
Ulf@483 | 11 time_constants_ = {0.002*1, 0.002*4, 0.002*16, 0.002*64}; |
Ulf@483 | 12 agc_stage_gain_ = 2; |
Ulf@483 | 13 decimation_ = {8, 2, 2, 2}; |
Ulf@483 | 14 agc1_scales_ = {1.0, 1.4, 2.0, 2.8}; |
Ulf@483 | 15 agc2_scales_ = {1.6, 2.25, 3.2, 4.5}; |
Ulf@483 | 16 detect_scale_ = 0.25; |
Ulf@483 | 17 agc_mix_coeff_ = 0.5; |
Ulf@483 | 18 } |
Ulf@479 | 19 |
Ulf@483 | 20 virtual ~AGC_parameters(){} |
Ulf@480 | 21 |
Ulf@483 | 22 int n_stages_; |
Ulf@483 | 23 FloatArray time_constants_; |
Ulf@483 | 24 float agc_stage_gain_; |
Ulf@483 | 25 FloatArray decimation_; |
Ulf@483 | 26 FloatArray agc1_scales_; |
Ulf@483 | 27 FloatArray agc2_scales_; |
Ulf@483 | 28 float detect_scale_; |
Ulf@483 | 29 float agc_mix_coeff_; |
Ulf@477 | 30 }; |
Ulf@477 | 31 |
Ulf@477 | 32 class AGC_coefficients { |
Ulf@477 | 33 public: |
Ulf@483 | 34 AGC_coefficients(AGC_parameters*, float, int); |
Ulf@483 | 35 virtual ~AGC_coefficients(); |
Ulf@481 | 36 private: |
Ulf@483 | 37 AGC_coefficients(){} |
Ulf@477 | 38 }; |
Ulf@477 | 39 |
Ulf@477 | 40 #endif /* AGC_H_ */ |