Changeset 3123 in Sophya for trunk/SophyaLib/HiStats/hist2err.h
- Timestamp:
- Jan 10, 2007, 12:53:57 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/HiStats/hist2err.h
r3121 r3123 9 9 namespace SOPHYA { 10 10 11 // Forward class declaration for Fits handler 12 template <class T> class FitsHandler; 13 11 14 //! 2 dimensions histograms with errors given by user 12 15 class Histo2DErr : public AnyDataObj { 13 16 friend class ObjFileIO<Histo2DErr>; 17 friend class FitsHandler<Histo2DErr>; 14 18 public: 15 19 … … 40 44 { 41 45 if(i<0 || i>=nx_ || j<0 || j>=ny_) return 0.; 46 return data_(i,j); 47 } 48 inline r_8& operator()(int_4 i,int_4 j) 49 { 42 50 return data_(i,j); 43 51 } … … 89 97 inline void AddBin(int_4 i,int_4 j) {AddBin(i,j,1.,1.);} 90 98 91 //! remplissage contenu de l'histo pour le bin numBinpoids w et l'erreur e99 //! remplissage contenu de l'histo pour le bin i poids w et l'erreur e 92 100 inline void SetBin(int_4 i,int_4 j, r_8 w, r_8 e, r_8 nb) 93 101 { … … 100 108 inline void SetBin(int_4 i,int_4 j, r_8 w) {SetBin(i,j,w,1.,1.);} 101 109 inline void SetBin(int_4 i,int_4 j) {SetBin(i,j,1.,1.,1.);} 102 //! remplissage nombre d'entrees pour le bin numBin 110 //! remplissage de l'erreur carree pour le bin i 111 void SetErr2(int_4 i,int_4 j, r_8 e2) 112 { 113 if(i<0 || i>=nx_) return; 114 err2_(i,j) = e2; 115 } 116 //! remplissage nombre d'entrees pour le bin i 103 117 void SetNentB(int_4 i,int_4 j, r_8 nb) 104 118 {
Note:
See TracChangeset
for help on using the changeset viewer.