Changeset 175


Ignore:
Timestamp:
Sep 29, 2004, 3:42:56 PM (17 years ago)
Author:
Jari Häkkinen
Message:

Added checks against exact vector copies in nni data, i.e. distance 0.

Location:
trunk/test
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/data/knni_matrix.data

    r157 r175  
    33.8964 .471294 .947234 .38272  .48328  .2874 .489892 .23478  .45645  .23899   .1234
    44.4372 .382144 .763342 .32924  .27823  .3827 .234764 .384734 .398795 .23498   .1234
     5.8624 .286482 .83248  .72846  .28468  .2347 .23234  .98973  .29874  .32894   .1234
    56.8624 .286482 .83248  .72846  .28468  .2347 .23234  .98973  .29874  .32894   .1234
    67.2342 .23878  .97437  .76236  .32764  .3474 .43276  .34555  .29948  .34598   .1234
  • trunk/test/data/knni_result.data

    r157 r175  
    440.4372 0.382144 0.763342 0.32924 0.27823 0.3827 0.234764 0.384734 0.398795 0.23498 0.1234
    550.8624 0.286482 0.83248 0.72846 0.28468 0.2347 0.23234 0.98973 0.29874 0.32894 0.1234
     60.8624 0.286482 0.83248 0.72846 0.284680000063 0.2347 0.23234 0.98973 0.29874 0.32894 0.1234
    670.2342 0.23878 0.97437 0.76236 0.32764 0.3474 0.43276 0.34555 0.29948 0.265321643162 0.1234
    780.2347 0.56783 0.78435 0.35763 0.23468 0.7384 0.23578 0.345533 0.235948 0.32458 0.1234
  • trunk/test/data/knni_weight.data

    r157 r175  
    441 1 1 1 1 1 1 1 1 1 0
    551 1 1 1 1 1 1 1 1 1 0
     61 1 1 1 0 1 1 1 1 1 0
    671 1 1 1 1 1 1 1 1 0 0
    781 1 1 1 1 1 1 1 1 1 0
  • trunk/test/data/wenni_result.data

    r172 r175  
    440.4372 0.382144 0.763342 0.32924 0.27823 0.3827 0.234764 0.384734 0.398795 0.23498 0.1234
    550.8624 0.286482 0.83248 0.72846 0.28468 0.2347 0.23234 0.98973 0.29874 0.32894 0.1234
     60.8624 0.286482 0.83248 0.72846 0.284680000063 0.2347 0.23234 0.98973 0.29874 0.32894 0.1234
    670.2342 0.23878 0.97437 0.76236 0.32764 0.3474 0.43276 0.34555 0.29948 0.27341113502 0.1234
    780.2347 0.56783 0.78435 0.35763 0.23468 0.7384 0.23578 0.345533 0.235948 0.32458 0.1234
  • trunk/test/data/wenni_weight.data

    r157 r175  
    441 1 1 1 1 1 1 1 1 1 0
    551 1 1 1 1 1 1 1 1 1 0
     61 1 1 1 0 1 1 1 1 1 0
    671 1 1 1 1 1 1 1 1 0.1 0
    781 1 1 1 1 1 1 1 1 1 0
  • trunk/test/test_nni.cc

    r172 r175  
    5252        exit(-1); // calculation result out of accepted error bounds
    5353      }
     54      else
     55        if (!((control(i,j)==control(i,j)))) {
     56          std::cerr << "test_nni: kNNI FAILED, nan (not a number) encountered in test\n";
     57          exit(-1); // calucaltion error detected
     58        }
    5459  control_stream.close();
    5560  data_stream.close();
     
    7378        exit(-1); // calculation result out of accepted error bounds
    7479      }
     80      else
     81        if (!((control(i,j)==control(i,j)))) {
     82          std::cerr << "test_nni: WeNNI FAILED, nan (not a number) encountered in test\n";
     83          exit(-1); // calucaltion error detected
     84        }
    7585
    7686  std::cout << "test_nni: SUCCESS, reproducing test result\n";
Note: See TracChangeset for help on using the changeset viewer.