Changeset 308 for bdm/stat/libDS.cpp
- Timestamp:
- 04/09/09 09:13:35 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
bdm/stat/libDS.cpp
r278 r308 1 1 2 2 #include "libDS.h" 3 4 3 using namespace bdm; 5 4 … … 54 53 } 55 54 55 CsvFileDS::CsvFileDS ( const string& fname, const string& orientation ) :FileDS() { 56 time = 0; 57 58 vec data_line; 59 string line; 60 61 ifstream fs; 62 fs.open(fname.c_str()); 63 if(fs.is_open()) { 64 while ( getline(fs, line) ) { 65 data_line.set(line); 66 Data.append_row(data_line); 67 } 68 } 69 70 if(orientation == "BY_ROW") { 71 transpose(Data, Data); 72 } 73 74 75 } 76 56 77 //! Auxiliary function building full history of rv0 57 78 RV fullrgr ( const RV &drv0, const RV &urv0, const RV &rrv0 ) { … … 65 86 return T; 66 87 } 88