Mercurial > hg > aimc
annotate src/AGC.h @ 481:cad69634b411 carfac_cpp
(none)
author | Ulf.Hammarqvist@gmail.com |
---|---|
date | Wed, 28 Mar 2012 20:24:28 +0000 |
parents | 5def66bf228f |
children | ea17c0e4e740 |
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@480 | 8 AGC_parameters(){ |
Ulf@480 | 9 n_stages = 4; // redundant? |
Ulf@481 | 10 time_constants = {0.002*1, 0.002*4, 0.002*16, 0.002*64}; |
Ulf@480 | 11 AGC_stage_gain = 2; |
Ulf@481 | 12 decimation = {8, 2, 2, 2}; |
Ulf@481 | 13 AGC1_scales = {1.0, 1.4, 2.0, 2.8}; |
Ulf@481 | 14 AGC2_scales = {1.6, 2.25, 3.2, 4.5}; |
Ulf@480 | 15 detect_scale = 0.25; |
Ulf@480 | 16 AGC_mix_coeff = 0.5; |
Ulf@480 | 17 } |
Ulf@479 | 18 |
Ulf@480 | 19 virtual ~AGC_parameters(){} |
Ulf@480 | 20 |
Ulf@480 | 21 int n_stages; |
Ulf@479 | 22 FloatArray time_constants; |
Ulf@479 | 23 float AGC_stage_gain; |
Ulf@479 | 24 FloatArray decimation; |
Ulf@479 | 25 FloatArray AGC1_scales; |
Ulf@479 | 26 FloatArray AGC2_scales; |
Ulf@479 | 27 float detect_scale; |
Ulf@479 | 28 float AGC_mix_coeff; |
Ulf@479 | 29 |
Ulf@477 | 30 }; |
Ulf@477 | 31 |
Ulf@477 | 32 class AGC_coefficients { |
Ulf@477 | 33 public: |
Ulf@481 | 34 AGC_coefficients(AGC_parameters*, float, int); |
Ulf@481 | 35 virtual ~AGC_coefficients(); |
Ulf@481 | 36 private: |
Ulf@477 | 37 AGC_coefficients(); |
Ulf@477 | 38 }; |
Ulf@477 | 39 |
Ulf@477 | 40 #endif /* AGC_H_ */ |