Changeset 727 for library/tests
- Timestamp:
- 11/17/09 00:54:12 (15 years ago)
- Location:
- library/tests
- Files:
-
- 1 added
- 4 modified
Legend:
- Unmodified
- Added
- Removed
-
library/tests/mat_checks.h
r722 r727 57 57 inline itpp::vec make_close_tolerance ( const itpp::vec & variance, int nsamples ) { 58 58 // simplify overloading for Visual Studio 59 return 2* ( sqrt ( variance ) / sqrt ( static_cast<double> ( nsamples ) ) );59 return 3 * ( sqrt ( variance ) / sqrt ( static_cast<double> ( nsamples ) ) ); 60 60 } 61 61 -
library/tests/testsuite/epdf_test.cpp
r725 r727 43 43 44 44 TEST ( ewishart_test ) { 45 mat wM = "1 0.00.9; 0.9 1.0";45 mat wM = "1.1 0.9; 0.9 1.0"; 46 46 eWishartCh eW; 47 47 eW.set_parameters ( wM / 100, 100 ); -
library/tests/testsuite/logger_test.cpp
r723 r727 41 41 memlog logger ( 100, ls ); 42 42 43 int rid = logger.add ( r, "" ); 44 int thid = logger.add ( th, "th" ); 43 int pol = 11; 44 45 int rid = logger.add_vector ( r, "" ); 46 int thid = logger.add_vector ( th, "th" ); 47 int polid = logger.add_setting("pols"); 45 48 46 49 logger.init(); 47 50 48 51 for ( int i = 0; i < 10; i++ ) { 49 logger.logit ( rid, vec_2 ( ( double ) i, ( double ) ( i + 1 ) ) ); 50 logger.logit ( thid, vec_2 ( ( double ) ( 100 - i ), ( double ) ( i - 50 ) ) ); 52 logger.log_vector ( rid, vec_2 ( ( double ) i, ( double ) ( i + 1 ) ) ); 53 logger.log_vector ( thid, vec_2 ( ( double ) ( 100 - i ), ( double ) ( i - 50 ) ) ); 54 UI::save(pol, logger.log_to_setting(polid), "polozka"); 51 55 logger.step(); 52 56 } … … 55 59 56 60 CHECK_EQUAL ( get_file_size ( "logger_test.matrix" ), get_file_size ( ls.c_str() ) ); 61 CHECK_EQUAL ( get_file_size ( "memlog_setting.cfg.check" ), get_file_size ( "memlog_setting.cfg" ) ); 57 62 } 58 63 … … 68 73 dirfilelog L ( "dirfilelog_files", 10 ); 69 74 70 int rid = L.add ( r, "" );71 int thid = L.add ( th, "th" );75 int rid = L.add_vector ( r, "" ); 76 int thid = L.add_vector ( th, "th" ); 72 77 73 78 L.init(); 74 79 75 80 for ( int i = 0; i < 150; i++ ) { 76 L.log it( rid, vec_2 ( ( double ) i, ( double ) ( i + 1 ) ) );77 L.log it( thid, vec_2 ( ( double ) ( 100 - i ), ( double ) ( i - 50 ) ) );81 L.log_vector ( rid, vec_2 ( ( double ) i, ( double ) ( i + 1 ) ) ); 82 L.log_vector ( thid, vec_2 ( ( double ) ( 100 - i ), ( double ) ( i - 50 ) ) ); 78 83 L.step(); 79 84 } -
library/tests/testsuite/logger_test_dirfile_format.matrix
r721 r727 1 r .0 RAW d 12 r .1 RAW d 13 th .alog RAW d 14 th .blog RAW d 11 r_0 RAW d 1 2 r_1 RAW d 1 3 th_alog RAW d 1 4 th_blog RAW d 1