Changeset 914 in Sophya for trunk/SophyaLib/HiStats/hisprof.h


Ignore:
Timestamp:
Apr 13, 2000, 6:04:50 PM (25 years ago)
Author:
ansari
Message:

documentation cmv 13/4/00

File:
1 edited

Legend:

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

    r763 r914  
    1010namespace SOPHYA {
    1111
     12/*!
     13  Classe de profil d'histogrammes.
     14*/
    1215class HProf : public Histo {
    1316  friend class ObjFileIO<HProf>;
     
    2831 
    2932  // Acces a l information
     33  //! Retourne l'histogramme de profil.
    3034  inline Histo GetHisto() {if(!Ok) UpdateHisto(); return (Histo) *this;}
     35  //! Retourne le contenu de la moyenne dans le vecteur v
    3136  inline void GetMean(Vector& v) {if(!Ok) UpdateHisto(); Histo::GetValue(v);}
     37  //! Retourne le contenu au carre de la dispersion/erreur dans le vecteur v
    3238  inline void GetError2(Vector& v) {if(!Ok) UpdateHisto(); Histo::GetError2(v);}
     39  //! Retourne le contenu du bin i
    3340  inline float operator()(int i) const {if(!Ok) UpdateHisto(); return data[i];}
     41  //! Retourne le carre de la dispersion/erreur du bin i
    3442  inline float Error2(int i) const {if(!Ok) UpdateHisto(); return (float) err2[i];}
     43  //! Retourne la dispersion/erreur du bin i
    3544  inline float Error(int i) const
    3645         {if(!Ok) UpdateHisto(); return err2[i]>0. ? (float) sqrt(err2[i]) : 0.f;}
     
    4251
    4352  // Fit
     53  //! Fit du profile par ``gfit''.
    4454  inline int    Fit(GeneralFit& gfit)
    4555         {if(!Ok) UpdateHisto(); return Histo::Fit(gfit,0);}
     56  //! Retourne l'Histogramme des residus par ``gfit''.
    4657  inline Histo  FitResidus(GeneralFit& gfit)
    4758         {if(!Ok) UpdateHisto(); return Histo::FitResidus(gfit);}
     59  //! Retourne l'Histogramme de la fonction fittee par ``gfit''.
    4860  inline Histo  FitFunction(GeneralFit& gfit)
    4961         {if(!Ok) UpdateHisto(); return Histo::FitFunction(gfit);}
    5062
    5163  // Print
     64  //! Print, voir detail dans Histo::Print
    5265  inline void Print(int dyn=100,float hmin=1.,float hmax=-1.,int pflag=0,int il=1,int ih=-1)
    5366                           {if(!Ok) UpdateHisto(); Histo::Print(dyn,hmin,hmax,pflag,il,ih);}
     
    5669  void Delete();
    5770
    58   double*        SumY;
    59   double*        SumY2;
    60   double*        SumW;
    61   bool           Ok;
    62   float          YMin;
    63   float          YMax;
    64   uint_2         Opt;
     71  double*        SumY;  //!< somme
     72  double*        SumY2; //!< somme des carres
     73  double*        SumW;  //!< somme des poids
     74  bool           Ok;    //!< true isiupdate fait
     75  float          YMin;  //!< limite minimum Y pour somme
     76  float          YMax;  //!< limite maximum Y pour somme
     77  uint_2         Opt;   //!< options pour les erreurs
    6578};
    6679
Note: See TracChangeset for help on using the changeset viewer.