Changeset 2558 for trunk/test/tukey.cc


Ignore:
Timestamp:
Sep 24, 2011, 10:53:04 PM (10 years ago)
Author:
Peter
Message:

refs #671. Follow Knuth's algorithm to calculate average and variance online

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/tukey.cc

    r2510 r2558  
    6666  TukeyBiweightEstimator estimator(5, false);
    6767  double x = estimator(data.begin(), data.end());
    68   suite.add(suite.equal(x, correct));
     68  suite.add(suite.equal(x, correct, 2));
    6969  double y = estimator(data.begin(), data.end());
    7070  TukeyBiweightEstimator estimator2(5, true);
Note: See TracChangeset for help on using the changeset viewer.