Mercurial > hg > aimc
changeset 583:daf1ca88fe20 carfac_cpp
(none)
author | Ulf.Hammarqvist@gmail.com |
---|---|
date | Thu, 11 Oct 2012 21:40:17 +0000 |
parents | b37ebfb0c837 |
children | |
files | include/AGC.h include/CAR.h include/CARFAC.h include/Ear.h include/IHC.h include/unit_conversion.h |
diffstat | 6 files changed, 13 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/include/AGC.h Thu Oct 11 21:33:57 2012 +0000 +++ b/include/AGC.h Thu Oct 11 21:40:17 2012 +0000 @@ -19,7 +19,8 @@ class AGC_coefficients { public: - AGC_coefficients(AGC_parameters*, float, int); + AGC_coefficients(AGC_parameters* AGC_params_p, + float fs, int n_ch); int n_ch_; int n_agc_stages_; @@ -36,7 +37,7 @@ float detect_scale_; private: - FloatArray Build_FIR_coeffs(float, float, int*, int*); + FloatArray Build_FIR_coeffs(float var, float mn, int* ptr_iters, int* ptr_taps); }; #endif /* AGC_H_ */
--- a/include/CAR.h Thu Oct 11 21:33:57 2012 +0000 +++ b/include/CAR.h Thu Oct 11 21:40:17 2012 +0000 @@ -27,7 +27,8 @@ class CAR_coefficients{ public: - CAR_coefficients(CAR_parameters*, float, FloatArray); + CAR_coefficients(CAR_parameters* car_params_p, float fs, + FloatArray pole_freqs); FloatArray r1_coeffs_; FloatArray a0_coeffs_;
--- a/include/CARFAC.h Thu Oct 11 21:33:57 2012 +0000 +++ b/include/CARFAC.h Thu Oct 11 21:40:17 2012 +0000 @@ -11,7 +11,11 @@ class CARFAC{ public: - CARFAC(int, CAR_parameters*, IHC_parameters*, AGC_parameters*, int); + CARFAC(int fs, + CAR_parameters* car_params, + IHC_parameters* ihc_params, + AGC_parameters* agc_params, + int n_ears); float fs_;
--- a/include/Ear.h Thu Oct 11 21:33:57 2012 +0000 +++ b/include/Ear.h Thu Oct 11 21:40:17 2012 +0000 @@ -14,7 +14,7 @@ class Ear { public: - Ear(CAR_parameters*, IHC_parameters*, AGC_parameters*, FloatArray, int, float); + Ear(CAR_parameters* car_params, IHC_parameters* ihc_params, AGC_parameters* agc_params, FloatArray pole_freqs, int n_ch, float fs); CAR_parameters car_params_; IHC_parameters ihc_params_;
--- a/include/IHC.h Thu Oct 11 21:33:57 2012 +0000 +++ b/include/IHC.h Thu Oct 11 21:40:17 2012 +0000 @@ -15,7 +15,7 @@ class IHC_coefficients{ public: - IHC_coefficients(IHC_parameters*, float, int); + IHC_coefficients(IHC_parameters* IHC_params_p, float fs, int n_ch); float saturation_output_;
--- a/include/unit_conversion.h Thu Oct 11 21:33:57 2012 +0000 +++ b/include/unit_conversion.h Thu Oct 11 21:40:17 2012 +0000 @@ -1,6 +1,6 @@ #ifndef UNIT_CONVERSION_H_ #define UNIT_CONVERSION_H_ -float ERB_Hz(float, float, float); +float ERB_Hz(float cf_hz, float erb_break_freq, float erb_q); #endif