diff carfac/agc_state.h @ 610:01986636257a

Second check-in of Alex Brandmeyer's C++ implementation of CARFAC. Addressed style issues and completed implementation of remaining functions. Still needs proper testing of the output stages against the MATLAB version, and runtime functions need improvements in efficiency.
author alexbrandmeyer
date Thu, 16 May 2013 17:33:23 +0000
parents aefe2ca0674f
children 586b0677aae8
line wrap: on
line diff
--- a/carfac/agc_state.h	Mon May 13 22:51:15 2013 +0000
+++ b/carfac/agc_state.h	Thu May 16 17:33:23 2013 +0000
@@ -25,14 +25,12 @@
 
 #include "agc_coeffs.h"
 
-class AGCState {
-public:
+struct AGCState {
   int n_ch_;
   int n_agc_stages_;
-  FloatArray2d agc_memory_;
-  FloatArray2d input_accum_;
-  FloatArray decim_phase_;
-  void InitAGCState(AGCCoeffs agc_coeffs);
+  std::vector<FloatArray> agc_memory_;
+  std::vector<FloatArray> input_accum_;
+  std::vector<int> decim_phase_;
 };
 
-#endif
+#endif
\ No newline at end of file