Changeset 3044 in Sophya for trunk/SophyaLib/HiStats/histerr.cc


Ignore:
Timestamp:
Aug 7, 2006, 7:38:47 PM (19 years ago)
Author:
cmv
Message:

ReCenterBin deplace methode Histo (was HistErr) cmv 7/8/2006

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/HiStats/histerr.cc

    r2868 r3044  
    115115if(n>0) for(int_4 i=0;i<n;i++) mNData[i] = v(i);
    116116return;
    117 }
    118 
    119 /********* Methode *********/
    120 /*!
    121  Recompute XMin and XMax so that
    122  the CENTER of the first bin is exactly XMin and
    123  the CENTER of the last bin is exactly XMax.
    124  Remember that otherwise
    125  XMin is the beginning of the first bin
    126  and XMax is the end of the last bin
    127 */
    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;
    135117}
    136118
Note: See TracChangeset for help on using the changeset viewer.