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


Ignore:
Timestamp:
Jan 16, 2007, 4:36:45 PM (19 years ago)
Author:
cmv
Message:

intro operator+=double HistoErr Histo2DErr cmv 16/01/07

File:
1 edited

Legend:

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

    r3123 r3136  
    169169/********* Methode *********/
    170170/*!
     171  Operateur de multiplication par une constante
     172*/
     173HistoErr& HistoErr::operator *= (r_8 b)
     174{
     175r_8 b2 = b*b;
     176for(int_4 i=0;i<nx_;i++) {
     177  data_(i) *= b;
     178  err2_(i) *= b2;
     179}
     180return *this;
     181}
     182
     183/********* Methode *********/
     184/*!
    171185  Print info
    172186*/
Note: See TracChangeset for help on using the changeset viewer.