Changeset 496


Ignore:
Timestamp:
Jan 16, 2006, 4:19:34 PM (16 years ago)
Author:
Peter
Message:

implemented AveragerPair::msd()

File:
1 edited

Legend:

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

    r490 r496  
    9393    /// \frac{1}{N} \sum (x-y)^2 \f$
    9494    ///
    95     // Peter, fix this
    96     //    inline double msd() const {return x_.mean_sqr()+y_.mean_sqr()-2*mean_xy();}
     95    inline double msd() const
     96    {return ( x_averager().sum_xx()+y_averager().sum_xx()-2*sum_xy() )/n();}
    9797
    9898    ///
Note: See TracChangeset for help on using the changeset viewer.