Changeset 759 for trunk/test
- Timestamp:
- Feb 19, 2007, 8:41:25 PM (16 years ago)
- Location:
- trunk/test
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/nni_test.cc
r711 r759 70 70 utility::matrix control(control_stream); 71 71 control-=knni.imputed_data(); 72 // Jari, should we use GSL defined round off errors? Anyway, the73 // hardcoded number below should be changed.74 72 double error_bound = 5e-13; 75 73 for (unsigned int i=0; i<control.rows(); i++) … … 106 104 for (unsigned int i=0; i<control.rows(); i++) 107 105 for (unsigned int j=0; j<control.columns(); j++) 108 // Jari, should we use GSL defined round off errors? Anyway, the109 // hardcoded number below should be changed.110 106 if (fabs(control(i,j))>error_bound) { 111 107 if (print) … … 139 135 for (unsigned int i=0; i<control.rows(); i++) 140 136 for (unsigned int j=0; j<control.columns(); j++) 141 // Jari, should we use GSL defined round off errors? Anyway, the142 // hardcoded number below should be changed.143 137 if (fabs(control(i,j))>error_bound) { 144 138 if (print) -
trunk/test/regression_test.cc
r742 r759 219 219 utility::vector fit=polynomialfit.fit_parameters(); 220 220 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) { 222 222 *error << "regression_Polynomial: cannot reproduce fit." << std::endl; 223 223 ok=false; -
trunk/test/svd_test.cc
r680 r759 42 42 bool test(size_t m, size_t n, utility::SVD::SVDalgorithm algo) 43 43 { 44 // accepted error, Jari: should be picked up from GSL 45 double MAXTOL=1e-13; 44 double MAXTOL=1e-13; // accepted error 46 45 47 46 // initialise a random test-matrix
Note: See TracChangeset
for help on using the changeset viewer.