Changeset 2808 in Sophya for trunk/SophyaLib/HiStats/ntuple.h
- Timestamp:
- Jun 14, 2005, 1:25:05 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/HiStats/ntuple.h
r2682 r2808 22 22 class FITS_NTuple; 23 23 24 //! Class for creation and management of double or float data sets in a table 24 25 class NTuple : public AnyDataObj , public NTupleInterface { 25 26 … … 28 29 NTuple(int nvar, char** noms, int blk=512, bool fgdouble=true); 29 30 NTuple(const NTuple& NT); 30 //A virer NTuple(char* flnm);31 31 virtual ~NTuple(); 32 32 … … 35 35 void Fill(r_4* x); 36 36 void Fill(r_8* x); 37 38 inline int_4 NEntry() const { return(mNEnt); } 37 //! Return the number of lines (rows) in the table) 38 inline int_4 NEntry() const { return(mNEnt); } 39 //! Return the number of columns in the tables (number of cells in a row) 39 40 inline int_4 NVar() const { return(mNVar); } 41 //! Return the bloc size 40 42 inline int_4 BLock() const { return(mBlk); } 41 43 // $CHECK$ Reza 21/10/99 Pourquoi faire BLock() ? 42 44 45 //! Return the content of the cell for line (row) \b n , column \b k 43 46 float GetVal(int n, int k) const; 47 //! Return the content of the cell for line (row) \b and column name \b nom 44 48 inline float GetVal(int n, const char* nom) const 45 49 { return(GetVal(n, IndexNom(nom)) ); } 46 50 int IndexNom(const char* nom) const ; 47 51 char* NomIndex(int k) const; 48 52 //! Return the content of line \b n as a vector of r_4 (float) 49 53 r_4* GetVec(int n, r_4* ret=NULL) const ; 54 //! Return the content of line \b n as a vector of r_8 (double) 50 55 r_8* GetVecD(int n, r_8* ret=NULL) const ; 51 56 … … 55 60 inline void Show() const { Show(cout); } 56 61 62 //! Return the associated DVList object 57 63 DVList& Info(); 58 64
Note:
See TracChangeset
for help on using the changeset viewer.