Changeset 3053 in Sophya for trunk/SophyaLib/HiStats/hisprof.h
- Timestamp:
- Aug 12, 2006, 7:29:29 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/HiStats/hisprof.h
r3049 r3053 56 56 {UpdateHisto(); 57 57 return (mErr2[i]>0.) ? sqrt(mErr2[i]) : 0.;} 58 //! Retourne le carre de la dispersion/erreur du bin i 59 inline r_8 SumW(int_4 i) const {return mSumW[i];} 58 60 59 61 // Operators … … 65 67 66 68 virtual void Show(ostream& os) const; 69 inline void Show() const { Show(cout); } 67 70 //! Print, voir detail dans Histo::Print 68 71 inline void Print(int_4 dyn=100,r_8 hmin=1.,r_8 hmax=-1. … … 71 74 72 75 protected: 76 void CreateOrResize(r_8 xMin, r_8 xMax, int_4 nBin, r_8 yMin=1., r_8 yMax=-1.); 73 77 void Delete(); 74 78 void updatehisto() const; 75 79 76 r_8* SumY; //!< somme77 r_8* SumY2; //!< somme des carres78 r_8* SumW; //!< somme des poids80 r_8* mSumY; //!< somme 81 r_8* mSumY2; //!< somme des carres 82 r_8* mSumW; //!< somme des poids 79 83 mutable bool Ok; //!< true if update fait 80 84 r_8 YMin; //!< limite minimum Y pour somme … … 83 87 }; 84 88 89 /*! Prints histogram information on stream \b s (h.Show(s)) */ 90 inline ostream& operator << (ostream& s, HProf const & h) 91 { h.Show(s); return(s); } 85 92 86 93 /*! \ingroup HiStats \fn operator<<(POuttPersist&, HProf)
Note:
See TracChangeset
for help on using the changeset viewer.