Changeset 2891 in Sophya for trunk/SophyaLib/HiStats
- Timestamp:
- Jan 9, 2006, 6:35:53 PM (20 years ago)
- Location:
- trunk/SophyaLib/HiStats
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/HiStats/basedtable.cc
r2853 r2891 306 306 //! Adds a row (or line) to the table with input data as DataTableRow object 307 307 /*! 308 The internal MuTyV array of the object contains the dat eand the308 The internal MuTyV array of the object contains the data and the 309 309 MuTyV class conversion operators are used to match against each 310 310 cell data type. -
trunk/SophyaLib/HiStats/swppfdtable.cc
r2849 r2891 42 42 dt.AddDoubleColumn("X0X0pX1X1_d"); 43 43 // Fill the table 44 MuTyVx[5];44 r_8 x[5]; 45 45 for(int i=0; i<63; i++) { 46 46 x[0] = (i%9)-4.; x[1] = (i/9)-3.; x[2] = x[0]*x[0]+x[1]*x[1]; 47 dt.Add Line(x);47 dt.AddRow(x); 48 48 } 49 49 // Printing table info … … 346 346 } 347 347 348 //! Adds a line (or rowto the table) with r_8* input data.348 //! Adds a row (or line to the table) with r_8* input data. 349 349 /*! 350 350 The min/max values for each column is updated, in addition 351 to the actions performed by the base class Add Line()352 */ 353 sa_size_t SwPPFDataTable::Add Line(const r_8* data)351 to the actions performed by the base class AddRow() 352 */ 353 sa_size_t SwPPFDataTable::AddRow(const r_8* data) 354 354 { 355 355 // On est oblige de calculer les min-max lors du remplissage … … 361 361 mMinMaxNEnt[k]++; 362 362 } 363 return BaseDataTable::Add Line(data);364 } 365 366 //! Adds a line (or rowto the table) with input data as an array of MuTyV363 return BaseDataTable::AddRow(data); 364 } 365 366 //! Adds a row (or line to the table) with input data as an array of MuTyV 367 367 /*! 368 368 The min/max values for each column is updated, in addition 369 369 to the actions performed by the base class AddLine() 370 370 */ 371 sa_size_t SwPPFDataTable::Add Line(const MuTyV * data)371 sa_size_t SwPPFDataTable::AddRow(const MuTyV * data) 372 372 { 373 373 // On est oblige de calculer les min-max lors du remplissage … … 379 379 mMinMaxNEnt[k]++; 380 380 } 381 return BaseDataTable::Add Line(data);382 } 383 381 return BaseDataTable::AddRow(data); 382 } 383 -
trunk/SophyaLib/HiStats/swppfdtable.h
r2827 r2891 26 26 virtual sa_size_t AddColumn(FieldType ft, string const & cnom); 27 27 28 // Filling data structures (adding lines )29 virtual sa_size_t Add Line(const r_8* data);30 virtual sa_size_t Add Line(const MuTyV * data);28 // Filling data structures (adding lines/rows) 29 virtual sa_size_t AddRow(const r_8* data); 30 virtual sa_size_t AddRow(const MuTyV * data); 31 31 32 //! Equal (copy) operator - Copies the data and the structure if necessary from \b a 33 inline SwPPFDataTable& operator = (BaseDataTable const& a) 34 { CopyMerge(a, true) ; return *this ; } 32 35 //! Equal (copy) operator - Copies the structure and shares the data \b a 33 inline SwPPFDataTable& operator = (SwPPFDataTable const& a)36 inline SwPPFDataTable& operator = (SwPPFDataTable const& a) 34 37 { Clear(); Share(a); return *this ; } 35 38
Note:
See TracChangeset
for help on using the changeset viewer.