Changeset 2819 in Sophya for trunk/SophyaLib/HiStats


Ignore:
Timestamp:
Aug 22, 2005, 5:28:57 PM (20 years ago)
Author:
cmv
Message:

FronCorrel() pour revenir en arriere cmv 22/08/2005k

Location:
trunk/SophyaLib/HiStats
Files:
2 edited

Legend:

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

    r2630 r2819  
    150150   mData[i] /= mNData[i];
    151151   mErr2[i] /= mNData[i];
     152 }
     153 return;
     154}
     155
     156/********* Methode *********/
     157/*!
     158 Recompute back the original HistoErr before ToCorrel action
     159*/
     160void HistoErr::FromCorrel(void)
     161{
     162 if(mBins<1) return;
     163 for(int_4 i=0;i<mBins;i++) {
     164   if(mNData[i]<1.) continue;
     165   mData[i] *= mNData[i];
     166   mErr2[i] *= mNData[i];
    152167 }
    153168 return;
  • trunk/SophyaLib/HiStats/histerr.h

    r2630 r2819  
    6767  //! Compute the correlation histogram
    6868  void ToCorrel(void);
     69  void FromCorrel(void);
    6970
    7071  //! Fill an histogram with an histogram
Note: See TracChangeset for help on using the changeset viewer.