Changeset 750 for library/tests/testsuite
- Timestamp:
- 12/07/09 01:26:55 (15 years ago)
- Location:
- library/tests/testsuite
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
library/tests/testsuite/emix_test.cpp
r722 r750 39 39 M1.set_rv ( xy ); 40 40 M1.set_parameters ( vec ( "1" ), A1 ); 41 M1.validate(); 41 42 42 43 // test if ARX and emix with one ARX are the same … … 68 69 M2.set_rv ( xy ); 69 70 M2.set_parameters ( vec ( "1" ), A2 ); 70 71 M2.validate(); 71 72 72 73 // mixture normalization -
library/tests/testsuite/epdf_test.cpp
r727 r750 18 18 // not using epdf_harness because eprod isn't configurable (yet?) 19 19 TEST ( eprod_test ) { 20 20 21 RV a ( "{eprod_a }", "1" ); 21 22 RV b ( "{eprod_b }", "2" ); … … 61 62 rwiWishartCh rwW; 62 63 rwW.set_parameters ( 2, 0.1, "1 1", 0.9 ); 64 rwW.validate(); 63 65 mat mea = zeros ( 2, 2 ); 64 66 mat wMch = chol ( wM ); 65 67 mat Ch ( 2, 2 ); 68 66 69 for ( int i = 0; i < 100; i++ ) { 67 70 vec tmp = rwW.samplecond ( vec ( wMch._data(), 4 ) ); 68 71 copy_vector ( 4, tmp._data(), Ch._data() ); 69 72 mea += Ch.T() * Ch; 73 70 74 } 71 75