Changeset 3307 in Sophya for trunk/SophyaLib/HiStats/histerr.cc
- Timestamp:
- Aug 22, 2007, 10:26:33 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/HiStats/histerr.cc
r3247 r3307 18 18 /*! Constructeur par defaut */ 19 19 HistoErr::HistoErr(void) 20 : xmin_(1.), xmax_(-1.), nx_(0), dx_(0.) 21 , mMean(0) 20 : xmin_(1.), xmax_(-1.), dx_(0.), nx_(0), mMean(0) 22 21 { 23 22 } … … 78 77 /********* Methode *********/ 79 78 /*! 80 Recompute XMin (and XMax so that79 Recompute XMin and XMax so that 81 80 the CENTER of the first bin is exactly XMin and 82 81 the CENTER of the last bin is exactly XMax. … … 84 83 XMin is the beginning of the first bin 85 84 and XMax is the end of the last bin 85 WARNING: number of bins is kept, bin width is changed 86 86 */ 87 87 void HistoErr::ReCenterBin(void) … … 92 92 xmax_ += dx/2.; 93 93 dx_ = (xmax_-xmin_)/nx_; 94 } 95 96 /********* Methode *********/ 97 /*! 98 Recompute XMin and XMax so that 99 the CENTER of the first bin is exactly XMin and 100 the CENTER of the last bin is exactly XMax. 101 Remember that otherwise 102 XMin is the beginning of the first bin 103 and XMax is the end of the last bin 104 WARNING: bin width is kept, number of bins is increased by 1 105 */ 106 void HistoErr::ReCenterBinW(void) 107 { 108 if(nx_<=1) return; 109 CreateOrResize(xmin_-dx_/2.,xmax_+dx_/2.,nx_+1); 94 110 } 95 111
Note:
See TracChangeset
for help on using the changeset viewer.