Changeset 1189 for library/tests/testsuite/epdf_test.cpp
- Timestamp:
- 09/16/10 13:22:11 (14 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/tests/testsuite/epdf_test.cpp
r1064 r1189 53 53 mat wM = "1.1 0.9; 0.9 1.0"; 54 54 eWishartCh eW; 55 eW.set_parameters ( wM / 100, 100 );55 eW.set_parameters ( wM , 10 ); 56 56 eW.validate(); 57 57 mat mea = zeros ( 2, 2 ); 58 mat Ch;58 chmat Ch; 59 59 for ( int i = 0; i < 100; i++ ) { 60 60 Ch = eW.sample_mat(); 61 mea += Ch. T() * Ch;61 mea += Ch.to_mat(); 62 62 } 63 63 64 64 mat actual = mea / 100; 65 CHECK_CLOSE ( wM, actual, 0.1);65 CHECK_CLOSE ( 10*wM, actual, 0.3 ); 66 66 } 67 67