Ignore:
Timestamp:
Dec 18, 2006, 1:47:44 AM (16 years ago)
Author:
Jari Häkkinen
Message:

Addresses #65 and #170.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/statistics/AveragerPair.h

    r680 r703  
    4545
    4646    ///
    47     /// Default constructor
     47    /// @brief The default constructor
    4848    ///
    49     inline AveragerPair(void) : x_(Averager()), y_(Averager()), xy_(0.0) {}
    50    
     49    AveragerPair(void);
     50
    5151    ///
    5252    /// Constructor taking sum of \a x , \a xx , \a y , \a yy , xy and
     
    5858
    5959    ///
    60     /// Copy constructor
     60    /// The copy constructor
    6161    ///
    62     inline AveragerPair(const AveragerPair& a)
    63       : x_(a.x_averager()), y_(a.y_averager()), xy_(a.sum_xy()) {}
    64    
     62    AveragerPair(const AveragerPair&);
     63
    6564    ///
    6665    /// Adding \a n pairs of data points with value \a x and \a y.
    6766    ///
    68     inline void add(const double x, const double y, const unsigned long n=1)
    69       { x_.add(x,n); y_.add(y,n), xy_ += n*x*y; }
     67    void add(const double x, const double y, const unsigned long n=1);
    7068
    7169    ///
     
    131129
    132130    ///
    133     /// Resets everything to zero
     131    /// @brief Reset everything to zero
    134132    ///
    135     inline void reset(void) { x_.reset(); y_.reset(); xy_=0.0; }
     133    void reset(void);
    136134
    137135    ///
     
    156154
    157155    ///
    158     /// The assigment operator
     156    /// @brief The assigment operator
    159157    ///
    160     inline const AveragerPair& operator=(const AveragerPair& a)
    161       { x_=a.x_; y_=a.y_; xy_=a.xy_; return *this; }
     158    const AveragerPair& operator=(const AveragerPair& a);
    162159
    163160    ///
Note: See TracChangeset for help on using the changeset viewer.