comparison trunk/carfac/carfac_output.h @ 622:16918ffbf975

Carfac C++ revision 3, indluding more style improvements. The output structs are now classes again, and have separate storage methods for each output structure along with flags in the Run and RunSegment methods to allow for only storing NAPs if desired.
author alexbrandmeyer
date Fri, 17 May 2013 19:52:45 +0000
parents d763637a05c5
children 933cf18d9a59
comparison
equal deleted inserted replaced
621:d763637a05c5 622:16918ffbf975
41 #ifndef CARFAC_Open_Source_C__Library_carfac_output_h 41 #ifndef CARFAC_Open_Source_C__Library_carfac_output_h
42 #define CARFAC_Open_Source_C__Library_carfac_output_h 42 #define CARFAC_Open_Source_C__Library_carfac_output_h
43 43
44 #include "ear_output.h" 44 #include "ear_output.h"
45 45
46 struct CARFACOutput { 46 class CARFACOutput {
47 void InitOutput(int n_ears, int n_ch, long n_tp); 47 public:
48 void MergeOutput(CARFACOutput output, long start, long length); 48 void InitOutput(int n_ears, int n_ch, int32_t n_tp);
49 void MergeOutput(CARFACOutput output, int32_t start, int32_t length);
50 void StoreNAPOutput(int32_t timepoint, int ear, int n_ch, FloatArray nap);
51 void StoreBMOutput(int32_t timepoint, int ear, int n_ch, FloatArray bm);
52 void StoreOHCOutput(int32_t timepoint, int ear, int n_ch, FloatArray ohc);
53 void StoreAGCOutput(int32_t timepoint, int ear, int n_ch, FloatArray agc);
54 private:
49 int n_ears_; 55 int n_ears_;
50 EarOutput *ears_; 56 std::vector<EarOutput> ears_;
51 }; 57 };
52 58
53 #endif 59 #endif