Changeset 447 for library/tests/epdf_harness.cpp
- Timestamp:
- 07/29/09 12:46:16 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
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);