Changeset 1667


Ignore:
Timestamp:
Dec 20, 2008, 10:25:58 PM (12 years ago)
Author:
Peter
Message:

refs #470: knn_test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/knn_test.cc

    r1586 r1667  
    238238  if (!(std::isinf(prediction1(0,0)) && std::isinf(prediction1(0,1)) &&
    239239        std::isinf(prediction1(1,2)) &&
    240         suite.equal(prediction1(1,3), 1.0/3.6742346141747673, 5000) &&
    241         suite.equal(prediction1(1,0), 1.0/2.82842712475+1.0/2.4494897427831779,
    242                     5000)
     240        suite.equal_fix(prediction1(1,3), 1.0/3.6742346141747673, 1e-16) &&
     241        suite.equal_fix(prediction1(1,0),
     242                        1.0/2.82842712475+1.0/2.4494897427831779, 1e-11)
    243243        )){
    244244    suite.err() << "Difference to expected prediction too large\n";
Note: See TracChangeset for help on using the changeset viewer.