Mercurial > hg > aimc
annotate include/AGC.h @ 579:71e3794ececa carfac_cpp
some refactoring
author | Ulf.Hammarqvist@gmail.com |
---|---|
date | Thu, 11 Oct 2012 20:55:03 +0000 |
parents | 83cd5bbf2a3e |
children | daf1ca88fe20 |
rev | line source |
---|---|
Ulf@503 | 1 #ifndef AGC_H_ |
Ulf@503 | 2 #define AGC_H_ |
Ulf@503 | 3 |
Ulf@503 | 4 #include "CARFAC_common.h" |
Ulf@503 | 5 |
Ulf@503 | 6 class AGC_parameters { |
Ulf@503 | 7 public: |
Ulf@579 | 8 AGC_parameters(); |
Ulf@503 | 9 |
Ulf@503 | 10 int n_stages_; |
Ulf@503 | 11 FloatArray time_constants_; |
Ulf@503 | 12 float agc_stage_gain_; |
Ulf@503 | 13 FloatArray decimation_; |
Ulf@503 | 14 FloatArray agc1_scales_; |
Ulf@503 | 15 FloatArray agc2_scales_; |
Ulf@503 | 16 float detect_scale_; |
Ulf@503 | 17 float agc_mix_coeff_; |
Ulf@503 | 18 }; |
Ulf@503 | 19 |
Ulf@503 | 20 class AGC_coefficients { |
Ulf@503 | 21 public: |
Ulf@503 | 22 AGC_coefficients(AGC_parameters*, float, int); |
Ulf@503 | 23 |
Ulf@503 | 24 int n_ch_; |
Ulf@503 | 25 int n_agc_stages_; |
Ulf@503 | 26 float agc_stage_gain_; |
Ulf@503 | 27 FloatArray agc_epsilon_; |
Ulf@503 | 28 FloatArray decimation_; |
Ulf@503 | 29 FloatArray agc_polez1_; |
Ulf@503 | 30 FloatArray agc_polez2_; |
Ulf@503 | 31 FloatArray agc_spatial_iterations_; |
Ulf@503 | 32 FloatMatrix agc_spatial_fir_; |
Ulf@503 | 33 FloatArray agc_spatial_n_taps_; |
Ulf@503 | 34 FloatArray agc_mix_coeffs_; |
Ulf@503 | 35 float agc_gain_; |
Ulf@503 | 36 float detect_scale_; |
Ulf@503 | 37 |
Ulf@503 | 38 private: |
Ulf@503 | 39 FloatArray Build_FIR_coeffs(float, float, int*, int*); |
Ulf@503 | 40 }; |
Ulf@503 | 41 |
Ulf@503 | 42 #endif /* AGC_H_ */ |