Changeset 447
- Timestamp:
- 07/29/09 12:46:16 (15 years ago)
- Location:
- library/tests
- Files:
-
- 4 added
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
library/tests/CMakeLists.txt
r441 r447 7 7 link_directories (./unittest-cpp) 8 8 9 add_library(testutil egiw_harness.cpp egiw_harness.h epdf_harness.cpp epdf_harness.h mat_checks.cpp mat_checks.h test_util.cpp test_util.h)9 add_library(testutil egiw_harness.cpp egiw_harness.h epdf_harness.cpp epdf_harness.h mat_checks.cpp mat_checks.h mpdf_harness.cpp mpdf_harness.h test_util.cpp test_util.h) 10 10 target_link_libraries(testutil bdm itpp unittest) 11 11 … … 38 38 39 39 # using UnitTest++ 40 add_executable(testsuite datalink_test.cpp egamma_test.cpp egiw_test.cpp enorm_test.cpp loggers_test.cpp rv_test.cpp square_mat_test.cpp testsuite.cpp test_user_info.cpp test_shared_ptr.cpp)40 add_executable(testsuite datalink_test.cpp egamma_test.cpp egiw_test.cpp enorm_test.cpp loggers_test.cpp mgamma_test.cpp rv_test.cpp square_mat_test.cpp testsuite.cpp test_user_info.cpp test_shared_ptr.cpp) 41 41 target_link_libraries(testsuite bdm itpp testutil unittest) 42 42 -
library/tests/epdf_harness.cpp
r442 r447 91 91 if (R.rows() > 0) { 92 92 mat smp = hepdf->sample_m(nsamples); 93 int N= smp.cols();94 vec Emu = smp *ones(N) /N;95 mat Er = (smp*smp.transpose())/ N- outer_product(Emu,Emu);93 int n = smp.cols(); 94 vec Emu = smp * ones(n) / n; 95 mat Er = (smp*smp.transpose())/n - outer_product(Emu,Emu); 96 96 CHECK_CLOSE(mean, Emu, 0.1); 97 97 CHECK_CLOSE(R, Er, 0.1);