Changeset 914 in Sophya for trunk/SophyaLib/HiStats/hisprof.h
- Timestamp:
- Apr 13, 2000, 6:04:50 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/HiStats/hisprof.h
r763 r914 10 10 namespace SOPHYA { 11 11 12 /*! 13 Classe de profil d'histogrammes. 14 */ 12 15 class HProf : public Histo { 13 16 friend class ObjFileIO<HProf>; … … 28 31 29 32 // Acces a l information 33 //! Retourne l'histogramme de profil. 30 34 inline Histo GetHisto() {if(!Ok) UpdateHisto(); return (Histo) *this;} 35 //! Retourne le contenu de la moyenne dans le vecteur v 31 36 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 32 38 inline void GetError2(Vector& v) {if(!Ok) UpdateHisto(); Histo::GetError2(v);} 39 //! Retourne le contenu du bin i 33 40 inline float operator()(int i) const {if(!Ok) UpdateHisto(); return data[i];} 41 //! Retourne le carre de la dispersion/erreur du bin i 34 42 inline float Error2(int i) const {if(!Ok) UpdateHisto(); return (float) err2[i];} 43 //! Retourne la dispersion/erreur du bin i 35 44 inline float Error(int i) const 36 45 {if(!Ok) UpdateHisto(); return err2[i]>0. ? (float) sqrt(err2[i]) : 0.f;} … … 42 51 43 52 // Fit 53 //! Fit du profile par ``gfit''. 44 54 inline int Fit(GeneralFit& gfit) 45 55 {if(!Ok) UpdateHisto(); return Histo::Fit(gfit,0);} 56 //! Retourne l'Histogramme des residus par ``gfit''. 46 57 inline Histo FitResidus(GeneralFit& gfit) 47 58 {if(!Ok) UpdateHisto(); return Histo::FitResidus(gfit);} 59 //! Retourne l'Histogramme de la fonction fittee par ``gfit''. 48 60 inline Histo FitFunction(GeneralFit& gfit) 49 61 {if(!Ok) UpdateHisto(); return Histo::FitFunction(gfit);} 50 62 51 63 // Print 64 //! Print, voir detail dans Histo::Print 52 65 inline void Print(int dyn=100,float hmin=1.,float hmax=-1.,int pflag=0,int il=1,int ih=-1) 53 66 {if(!Ok) UpdateHisto(); Histo::Print(dyn,hmin,hmax,pflag,il,ih);} … … 56 69 void Delete(); 57 70 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 65 78 }; 66 79
Note:
See TracChangeset
for help on using the changeset viewer.