Changeset 841 for branches/0.3.1/test
 Timestamp:
 Apr 25, 2007, 10:20:54 AM (16 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

branches/0.3.1/test/regression_test.cc
r831 r841 267 267 r.fit(x,y); 268 268 rw.fit(x,y,w); 269 if ( r.predict(2000) != rw.predict(2000)){269 if (fabs(r.predict(2000)  rw.predict(2000))>1e15) { 270 270 ok = false; 271 271 *error << "Error: predict not equal\n" … … 382 382 383 383 wr.fit(x2,y2,w2); 384 if ( wr.predict(2000) != predict){384 if (fabs(wr.predict(2000)  predict)>1e15) { 385 385 ok = false; 386 386 *error << "Error: predict not equal.\n"; 387 387 } 388 if ( wr.prediction_error2(2000) != prediction_error2){388 if (fabs(wr.prediction_error2(2000)  prediction_error2)>1e13) { 389 389 ok = false; 390 390 *error << "Error: prediction_error2 not equal.\n"; 391 391 } 392 if ( wr.r2() != r2){392 if (fabs(wr.r2()  r2)>1e15) { 393 393 ok = false; 394 394 *error << "Error: r2 not equal.\n"; … … 396 396 *error << " r2: " << wr.r2() << "\n"; 397 397 } 398 if ( wr.s2() != s2){398 if (fabs(wr.s2()  s2)>1e15) { 399 399 ok = false; 400 400 *error << "Error: s2 not equal.\n"; 401 401 } 402 if ( wr.standard_error2(2000) != standard_error2){402 if (fabs(wr.standard_error2(2000)  standard_error2)>1e15) { 403 403 ok = false; 404 404 *error << "Error: standard_error2 not equal.\n";
Note: See TracChangeset
for help on using the changeset viewer.