Ignore:
Timestamp:
Jan 6, 2007, 12:02:21 PM (16 years ago)
Author:
Peter
Message:

fixes #167 and #160

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/regression/Linear.cc

    r729 r730  
    6666
    6767    alpha_ = ap_.y_averager().mean();
    68     beta_ = ap_.covariance() / ap_.x_averager().variance();
     68    beta_ = ap_.sum_xy_centered() / ap_.x_averager().sum_xx_centered();
    6969
    7070    // calculating deviation between data and model
Note: See TracChangeset for help on using the changeset viewer.