Changeset 2039


Ignore:
Timestamp:
Aug 26, 2009, 4:42:57 PM (11 years ago)
Author:
Peter
Message:

closes #554 - added function rescale in Smoother

Location:
trunk/yat/statistics
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/statistics/Smoother.cc

    r1797 r2039  
    6868
    6969
     70  void Smoother::rescale(double factor)
     71  {
     72    for (size_t i=0; i<x_.size(); ++i)
     73      x_[i] *= factor;
     74  }
     75
     76
    7077  void Smoother::reset(void)
    7178  {
  • trunk/yat/statistics/Smoother.h

    r1886 r2039  
    7777
    7878    /**
     79       multiply each value with \a factor
     80       
     81       \since New in yat 0.6
     82     */
     83    void rescale(double factor);
     84
     85    /**
    7986       \brief reset density to zero
    8087     */
Note: See TracChangeset for help on using the changeset viewer.