Mercurial > hg > aimc
view branches/carfac_cpp/include/Ear.h @ 705:be2b68ced23d
Make the C++ SAI match the Matlab implementation.
- Fix syntax error which caused a linear window to be used instead of the correct sine window.
- Correct off-by-one indexing errors to compensate for 1-based indexing in Matlab.
- Enable test to verify that the C++ output matches Matlab with high precision.
author | ronw@google.com |
---|---|
date | Tue, 16 Jul 2013 19:56:16 +0000 |
parents | 057946a60b91 |
children |
line wrap: on
line source
/* * Ear.h * * Created on: 16 maj 2012 * Author: ulha */ #ifndef EAR_H_ #define EAR_H_ #include "CAR.h" #include "IHC.h" #include "AGC.h" class Ear { public: 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_; AGC_parameters agc_params_; CAR_coefficients* car_coeffs_p_; IHC_coefficients* ihc_coeffs_p_; AGC_coefficients* agc_coeffs_p_; private: }; #endif /* EAR_H_ */