diff carfac/agc_state.h @ 626:586b0677aae8

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 01986636257a
children d08c02c8e26f
line wrap: on
line diff
--- a/carfac/agc_state.h	Tue May 21 21:48:34 2013 +0000
+++ b/carfac/agc_state.h	Wed May 22 21:30:02 2013 +0000
@@ -27,10 +27,9 @@
 
 struct AGCState {
   int n_ch_;
-  int n_agc_stages_;
-  std::vector<FloatArray> agc_memory_;
-  std::vector<FloatArray> input_accum_;
-  std::vector<int> decim_phase_;
+  FloatArray agc_memory_;
+  FloatArray input_accum_;
+  int decim_phase_;
 };
 
 #endif
\ No newline at end of file