Changeset 3307 in Sophya for trunk/SophyaLib/HiStats/hist2err.cc
- Timestamp:
- Aug 22, 2007, 10:26:33 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/HiStats/hist2err.cc
r3247 r3307 18 18 /*! Constructeur par defaut */ 19 19 Histo2DErr::Histo2DErr(void) 20 : xmin_(1.), xmax_(-1.), nx_(0),dx_(0.)21 , ymin_(1.), ymax_(-1.), ny_(0),dy_(0.)22 , mMean(0)20 : xmin_(1.), xmax_(-1.), dx_(0.) 21 , ymin_(1.), ymax_(-1.), dy_(0.) 22 , nx_(0), ny_(0), mMean(0) 23 23 { 24 24 } … … 87 87 XMin (YMin) is the beginning of the first bin 88 88 and XMax (YMax) is the end of the last bin 89 WARNING: number of bins is kept, bin width is changed 89 90 */ 90 91 void Histo2DErr::ReCenterBinX(void) … … 110 111 ReCenterBinX(); 111 112 ReCenterBinY(); 113 } 114 115 /********* Methode *********/ 116 /*! 117 Recompute XMin (YMin) and XMax (YMax) so that 118 the CENTER of the first bin is exactly XMin (YMin) and 119 the CENTER of the last bin is exactly XMax (YMax). 120 Remember that otherwise 121 XMin (YMin) is the beginning of the first bin 122 and XMax (YMax) is the end of the last bin 123 WARNING: bin widths are kept, numbers of bins are increased by 1 124 */ 125 void Histo2DErr::ReCenterBinW(void) 126 { 127 CreateOrResize(xmin_-dx_/2.,xmax_+dx_/2.,nx_+1,ymin_-dy_/2.,ymax_+dy_/2.,ny_+1); 112 128 } 113 129
Note:
See TracChangeset
for help on using the changeset viewer.