Ignore:
Timestamp:
Oct 27, 2004, 9:04:22 PM (17 years ago)
Author:
Jari Häkkinen
Message:

Cleanup interfaces for Averager classes and move stuff into statsitics
namespace.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/AveragerPair.cc

    r138 r197  
    1010
    1111namespace theplu {
    12 namespace cpptools{
     12namespace statistics{
    1313 
    1414
     
    1818  }
    1919
    20   AveragerPair::AveragerPair(const std::pair<double,double> z)
    21     : x_(Averager(z.first)), y_(Averager(z.second)), xy_(z.first*z.second)
    22   {
    23   }
    24 
    25   AveragerPair::AveragerPair(const double x, const double y)
    26     : x_(Averager(x)), y_(Averager(y)), xy_(x*y)
    27   {
    28   }
    29 
    3020  AveragerPair::AveragerPair(const double x, const double xx, const double y,
    3121                     const double yy, const double xy, const long n)
    3222    : x_(Averager(x,xx,n)), y_(Averager(y,yy,n)), xy_(xy)
    33   {
    34   }
    35 
    36   AveragerPair::AveragerPair(const gslapi::vector& x, const gslapi::vector& y )
    37     :x_(Averager(x)), y_(Averager(y)), xy_(x*y)
    3823  {
    3924  }
     
    5237  }
    5338
    54 }} // of namespace cpptools and namespace theplu
     39}} // of namespace statistics and namespace theplu
Note: See TracChangeset for help on using the changeset viewer.