Mercurial > hg > aimc
view branches/carfac_cpp/src/AGC.h @ 544:c666e8e0696a
style
author | Ulf.Hammarqvist@gmail.com |
---|---|
date | Thu, 29 Mar 2012 19:43:36 +0000 |
parents | cd2f402f3bd7 |
children | e63fbe19b255 |
line wrap: on
line source
#ifndef AGC_H_ #define AGC_H_ #include "CARFAC_common_typedefs.h" class AGC_parameters { public: AGC_parameters() { n_stages_ = 4; // redundant? time_constants_ = {0.002*1, 0.002*4, 0.002*16, 0.002*64}; agc_stage_gain_ = 2; decimation_ = {8, 2, 2, 2}; agc1_scales_ = {1.0, 1.4, 2.0, 2.8}; agc2_scales_ = {1.6, 2.25, 3.2, 4.5}; detect_scale_ = 0.25; agc_mix_coeff_ = 0.5; } virtual ~AGC_parameters(){} int n_stages_; FloatArray time_constants_; float agc_stage_gain_; FloatArray decimation_; FloatArray agc1_scales_; FloatArray agc2_scales_; float detect_scale_; float agc_mix_coeff_; }; class AGC_coefficients { public: AGC_coefficients(AGC_parameters*, float, int); virtual ~AGC_coefficients(); private: AGC_coefficients(){} }; #endif /* AGC_H_ */