Changeset 3136 in Sophya for trunk/SophyaLib/HiStats
- Timestamp:
- Jan 16, 2007, 4:36:45 PM (19 years ago)
- Location:
- trunk/SophyaLib/HiStats
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/HiStats/hist2err.cc
r3122 r3136 193 193 /********* Methode *********/ 194 194 /*! 195 Operateur de multiplication par une constante 196 */ 197 Histo2DErr& Histo2DErr::operator *= (r_8 b) 198 { 199 r_8 b2 = b*b; 200 for(int_4 i=0;i<nx_;i++) { 201 for(int_4 j=0;j<ny_;j++) { 202 data_(i,j) *= b; 203 err2_(i,j) *= b2; 204 } 205 } 206 return *this; 207 } 208 209 /********* Methode *********/ 210 /*! 195 211 Print info 196 212 */ -
trunk/SophyaLib/HiStats/hist2err.h
r3124 r3136 136 136 137 137 //! Recuperation des matrices elementaires 138 inlinevoid GetData(TMatrix<r_8>& data) {data = data_;}139 inlinevoid GetError2(TMatrix<r_8>& err2) {err2 = err2_;}140 inlinevoid GetNData(TMatrix<r_8>& ndata) {ndata = ndata_;}138 void GetData(TMatrix<r_8>& data) {data = data_;} 139 void GetError2(TMatrix<r_8>& err2) {err2 = err2_;} 140 void GetNData(TMatrix<r_8>& ndata) {ndata = ndata_;} 141 141 142 142 // Operators 143 143 Histo2DErr& operator = (const Histo2DErr& h); 144 Histo2DErr& operator *= (r_8 b); 144 145 145 146 // Print 146 v irtual void Show(ostream& os) const;147 inlinevoid Show() const { Show(cout); }147 void Show(ostream& os) const; 148 void Show() const { Show(cout); } 148 149 149 150 protected: -
trunk/SophyaLib/HiStats/histerr.cc
r3123 r3136 169 169 /********* Methode *********/ 170 170 /*! 171 Operateur de multiplication par une constante 172 */ 173 HistoErr& HistoErr::operator *= (r_8 b) 174 { 175 r_8 b2 = b*b; 176 for(int_4 i=0;i<nx_;i++) { 177 data_(i) *= b; 178 err2_(i) *= b2; 179 } 180 return *this; 181 } 182 183 /********* Methode *********/ 184 /*! 171 185 Print info 172 186 */ -
trunk/SophyaLib/HiStats/histerr.h
r3124 r3136 127 127 128 128 //! Recuperation des matrices elementaires 129 inlinevoid GetData(TVector<r_8>& data) {data = data_;}130 inlinevoid GetError2(TVector<r_8>& err2) {err2 = err2_;}131 inlinevoid GetNData(TVector<r_8>& ndata) {ndata = ndata_;}129 void GetData(TVector<r_8>& data) {data = data_;} 130 void GetError2(TVector<r_8>& err2) {err2 = err2_;} 131 void GetNData(TVector<r_8>& ndata) {ndata = ndata_;} 132 132 133 133 // Operators 134 134 HistoErr& operator = (const HistoErr& h); 135 HistoErr& operator *= (r_8 b); 135 136 136 137 // Print 137 v irtual void Show(ostream& os) const;138 inlinevoid Show() const { Show(cout); }138 void Show(ostream& os) const; 139 void Show() const { Show(cout); } 139 140 140 141 protected:
Note:
See TracChangeset
for help on using the changeset viewer.