annotate branches/carfac_cpp/src/IHC.cpp @ 668:933cf18d9a59

Fourth revision of Alex Brandmeyer's C++ implementation. Fixed more style issues, changed AGC structures to vectors, replaced FloatArray2d with vector<FloatArray>, implemented first tests using GTest to verify coefficients and monaural output against Matlab values (stored in aimc/carfac/test_data/). To run tests, change the path stored in carfac_test.h in TEST_SRC_DIR. Added CARFAC_GenerateTestData to the Matlab branch, fixed stage indexing in CARFAC_Cross_Couple.m to reflect changes in AGCCoeffs and AGCState structs.
author alexbrandmeyer
date Wed, 22 May 2013 21:30:02 +0000
parents f3dde307f4b8
children
rev   line source
Ulf@538 1 #include "IHC.h"
Ulf@538 2
Ulf@586 3 IHC_parameters::IHC_parameters():
Ulf@586 4 tau_lpf_(0.000080),
Ulf@586 5 tau1_out_(0.010),
Ulf@586 6 tau1_in_(0.20),
Ulf@586 7 tau2_out_(0.0025),
Ulf@586 8 tau2_in_(0.005)
Ulf@586 9 {
Ulf@586 10 // do nothing more
Ulf@586 11 }
Ulf@586 12
Ulf@586 13 IHC_coefficients::IHC_coefficients(IHC_parameters* IHC_params_p, float fs, int n_ch):
Ulf@586 14 saturation_output_(0.0)
Ulf@586 15 {
Ulf@544 16 // TODO stuff!
Ulf@538 17 }