Ignore:
Timestamp:
Feb 28, 2008, 5:53:03 PM (13 years ago)
Author:
Peter
Message:

changed regression test to be less strict. test failed after I started linking against atlas.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/regression_test.cc

    r1151 r1183  
    382382
    383383  wr.fit(x2,y2,w2);
    384   if (fabs(wr.predict(2000) - predict)>1e-15) {
     384  if (fabs(wr.predict(2000) - predict)>1e-10) {
    385385    ok = false;
    386386    *error << "Error: predict not equal.\n";
     387    *error << "       weighted predict: " << wr.predict(2000) << "\n";
     388    *error << "       unweighted predict: " << predict << "\n";
     389    *error << "       difference: " << wr.predict(2000)-predict << "\n";
     390
    387391  }
    388392  if (fabs(wr.prediction_error2(2000) - prediction_error2)>1e-13) {
Note: See TracChangeset for help on using the changeset viewer.