annotate src/AGC.h @ 484:715fc47a965e carfac_cpp

stubbed some more, and tidying
author Ulf.Hammarqvist@gmail.com
date Sat, 31 Mar 2012 17:24:08 +0000
parents 3673e3e67bab
children 3029dec89440
rev   line source
Ulf@477 1 #ifndef AGC_H_
Ulf@477 2 #define AGC_H_
Ulf@477 3
Ulf@484 4 #include "CARFAC_common.h"
Ulf@479 5
Ulf@477 6 class AGC_parameters {
Ulf@477 7 public:
Ulf@484 8 AGC_parameters():
Ulf@484 9 n_stages_(4),
Ulf@484 10 time_constants_({0.002*1, 0.002*4, 0.002*16, 0.002*64}),
Ulf@484 11 agc_stage_gain_(2),
Ulf@484 12 decimation_({8, 2, 2, 2}),
Ulf@484 13 agc1_scales_({1.0, 1.4, 2.0, 2.8}),
Ulf@484 14 agc2_scales_({1.6, 2.25, 3.2, 4.5}),
Ulf@484 15 detect_scale_(0.25),
Ulf@484 16 agc_mix_coeff_(0.5){
Ulf@484 17 // do nothing more
Ulf@483 18 }
Ulf@479 19
Ulf@484 20 virtual ~AGC_parameters(){
Ulf@484 21 // do nothing
Ulf@484 22 }
Ulf@480 23
Ulf@483 24 int n_stages_;
Ulf@483 25 FloatArray time_constants_;
Ulf@483 26 float agc_stage_gain_;
Ulf@483 27 FloatArray decimation_;
Ulf@483 28 FloatArray agc1_scales_;
Ulf@483 29 FloatArray agc2_scales_;
Ulf@483 30 float detect_scale_;
Ulf@483 31 float agc_mix_coeff_;
Ulf@477 32 };
Ulf@477 33
Ulf@477 34 class AGC_coefficients {
Ulf@477 35 public:
Ulf@483 36 AGC_coefficients(AGC_parameters*, float, int);
Ulf@483 37 virtual ~AGC_coefficients();
Ulf@484 38
Ulf@484 39 float detect_scale_;
Ulf@484 40 float agc_gain_;
Ulf@481 41 private:
Ulf@484 42 AGC_coefficients();
Ulf@477 43 };
Ulf@477 44
Ulf@477 45 #endif /* AGC_H_ */