Ignore:
Timestamp:
Sep 26, 2007, 11:26:25 PM (15 years ago)
Author:
Peter
Message:

changed euclidean to fulfill design criteria, removes sum_squared_deviation from AveragerPairWeighted?, also changed vector::sort to use stl rather than gsl. refs #248 and fixes #253

File:
1 edited

Legend:

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

    r890 r899  
    9696  double AveragerPairWeighted::msd(void) const
    9797  {
    98     return sum_squared_deviation()/w_;
     98    return (x_.sum_wxx()+y_.sum_wxx()-2*wxy_)/w_;
     99  }
     100
     101
     102  double AveragerPairWeighted::n(void) const
     103  {
     104    return x_.n();
    99105  }
    100106
     
    105111  }
    106112
    107   double AveragerPairWeighted::sum_squared_deviation(void) const
    108   {
    109     return x_.sum_wxx()+y_.sum_wxx()-2*wxy_;
    110   }
    111  
    112113
    113114  double AveragerPairWeighted::sum_w(void) const
Note: See TracChangeset for help on using the changeset viewer.