annotate src/AGC.h @ 480:5def66bf228f carfac_cpp

(none)
author Ulf.Hammarqvist@gmail.com
date Wed, 28 Mar 2012 17:20:06 +0000
parents 7eba2f13aa13
children cad69634b411
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@480 10 // time_constants = {1, 4, 16, 64};
Ulf@480 11 AGC_stage_gain = 2;
Ulf@480 12 // decimation = {8, 2, 2, 2};
Ulf@480 13 // AGC1_scales = {1.0, 1.4, 2.0, 2.8};
Ulf@480 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@477 34 AGC_coefficients();
Ulf@477 35 virtual ~AGC_coefficients();
Ulf@477 36 };
Ulf@477 37
Ulf@477 38 #endif /* AGC_H_ */