Changeset 2808 in Sophya for trunk/SophyaLib/HiStats/ntuple.h


Ignore:
Timestamp:
Jun 14, 2005, 1:25:05 PM (20 years ago)
Author:
ansari
Message:

MAJ documentation - Reza 14/6/2005

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/HiStats/ntuple.h

    r2682 r2808  
    2222class FITS_NTuple;
    2323
     24//! Class for creation and management of double or float data sets in a table
    2425class NTuple : public AnyDataObj , public NTupleInterface {
    2526
     
    2829                    NTuple(int nvar, char** noms, int blk=512, bool fgdouble=true);
    2930                    NTuple(const NTuple& NT);
    30   //A virer                 NTuple(char* flnm);
    3131  virtual           ~NTuple();
    3232
     
    3535  void              Fill(r_4* x);
    3636  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) 
    3940  inline int_4      NVar() const { return(mNVar); } 
     41  //! Return the bloc size
    4042  inline int_4      BLock() const { return(mBlk); } 
    4143// $CHECK$ Reza 21/10/99 Pourquoi faire BLock() ?
    4244
     45  //! Return the content of the cell for line (row) \b n , column \b k
    4346  float             GetVal(int n, int k)   const;
     47  //! Return the content of the cell for line (row) \b and column name \b nom
    4448  inline float      GetVal(int n, const char* nom) const
    4549                            { return(GetVal(n, IndexNom(nom)) ); }
    4650  int               IndexNom(const char* nom)  const ;
    4751  char*             NomIndex(int k) const;
    48 
     52  //! Return the content of line \b n as a vector of r_4 (float)
    4953  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)
    5055  r_8*              GetVecD(int n, r_8* ret=NULL)  const ;
    5156
     
    5560  inline void       Show() const { Show(cout); }
    5661
     62  //! Return the associated DVList object
    5763  DVList&           Info();
    5864
Note: See TracChangeset for help on using the changeset viewer.