Changeset 759 for trunk/test


Ignore:
Timestamp:
Feb 19, 2007, 8:41:25 PM (16 years ago)
Author:
Jari Häkkinen
Message:

Fixes #171 and addresses #2. A few more GSL_error exceptions. Removed Jari comments.

Location:
trunk/test
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/nni_test.cc

    r711 r759  
    7070  utility::matrix control(control_stream);
    7171  control-=knni.imputed_data();
    72   // Jari, should we use GSL defined round off errors? Anyway, the
    73   // hardcoded number below should be changed.
    7472  double error_bound = 5e-13;
    7573  for (unsigned int i=0; i<control.rows(); i++)
     
    106104  for (unsigned int i=0; i<control.rows(); i++)
    107105    for (unsigned int j=0; j<control.columns(); j++)
    108       // Jari, should we use GSL defined round off errors? Anyway, the
    109       // hardcoded number below should be changed.
    110106      if (fabs(control(i,j))>error_bound) {
    111107        if (print)
     
    139135  for (unsigned int i=0; i<control.rows(); i++)
    140136    for (unsigned int j=0; j<control.columns(); j++)
    141       // Jari, should we use GSL defined round off errors? Anyway, the
    142       // hardcoded number below should be changed.
    143137      if (fabs(control(i,j))>error_bound) {
    144138        if (print)
  • trunk/test/regression_test.cc

    r742 r759  
    219219    utility::vector fit=polynomialfit.fit_parameters();
    220220    if (fabs(fit[0]-1.012229646706 + fit[1]-0.012561322528 +
    221              fit[2]+1.159674470130)>1e-11) {  // Jari, fix number!
     221             fit[2]+1.159674470130)>1e-11) {
    222222      *error << "regression_Polynomial: cannot reproduce fit." << std::endl;
    223223      ok=false;
  • trunk/test/svd_test.cc

    r680 r759  
    4242bool test(size_t m, size_t n, utility::SVD::SVDalgorithm algo)
    4343{
    44   // accepted error, Jari: should be picked up from GSL
    45   double MAXTOL=1e-13;
     44  double MAXTOL=1e-13; // accepted error
    4645
    4746  // initialise a random test-matrix
Note: See TracChangeset for help on using the changeset viewer.