Changeset 461 for library/tests/epdf_harness.cpp
- Timestamp:
- 07/31/09 13:06:49 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/tests/epdf_harness.cpp
r458 r461 80 80 mat smp = hepdf->sample_m(nsamples); 81 81 int n = smp.cols(); 82 vec Emu = smp * ones(n) / n;83 mat Er = (smp*smp.transpose())/n - outer_product(Emu,Emu);84 CHECK_CLOSE_EX(mean, Emu, tolerance);85 CHECK_CLOSE_EX(R, Er, tolerance);82 vec emu = smp * ones(n) / n; 83 mat er = (smp * smp.T()) / n - outer_product(emu, emu); 84 CHECK_CLOSE_EX(mean, emu, tolerance); 85 CHECK_CLOSE_EX(R, er, tolerance); 86 86 } 87 87 }