Changeset 3044 in Sophya for trunk/SophyaLib/HiStats/histerr.cc
- Timestamp:
- Aug 7, 2006, 7:38:47 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/HiStats/histerr.cc
r2868 r3044 115 115 if(n>0) for(int_4 i=0;i<n;i++) mNData[i] = v(i); 116 116 return; 117 }118 119 /********* Methode *********/120 /*!121 Recompute XMin and XMax so that122 the CENTER of the first bin is exactly XMin and123 the CENTER of the last bin is exactly XMax.124 Remember that otherwise125 XMin is the beginning of the first bin126 and XMax is the end of the last bin127 */128 void HistoErr::ReCenterBin(void)129 {130 if(mBins<=1) return;131 double dx = (mMax-mMin)/(mBins-1);132 mMin -= dx/2.;133 mMax += dx/2.;134 binWidth = (mMax-mMin)/mBins;135 117 } 136 118
Note:
See TracChangeset
for help on using the changeset viewer.