Changeset 799
- Timestamp:
- 01/29/10 22:19:01 (15 years ago)
- Location:
- library
- Files:
-
- 4 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/stat/exp_family.h
r797 r799 1711 1711 uptarget.set_rvc ( rvc ); 1712 1712 uptarget.set_parameters ( A, mu1 - A*mu2, R_n ); 1713 uptarget.validate(); 1713 1714 } 1714 1715 -
library/bdm/stat/merger.h
r773 r799 188 188 189 189 void validate() { 190 bdm_assert ( eSmp._w().length() > 0, "Empty support, use set_support()." );191 bdm_assert ( dim == eSmp._samples() ( 0 ).length(), "Support points and rv are not compatible!" );190 // bdm_assert ( eSmp._w().length() > 0, "Empty support, use set_support()." ); 191 // bdm_assert ( dim == eSmp._samples() ( 0 ).length(), "Support points and rv are not compatible!" ); 192 192 bdm_assert ( isnamed(), "mergers must be named" ); 193 193 } -
library/tests/testsuite/emix_test.cpp
r766 r799 39 39 M1.set_rv ( xy ); 40 40 M1._Coms() = A1; 41 M1._w() = 1;41 M1._w() = vec_1(1.0); 42 42 M1.validate(); 43 43 … … 70 70 M2.set_rv ( xy ); 71 71 M2._Coms() = A2; 72 M2._w() = 1;72 M2._w() = vec_2(.5,.5); 73 73 M2.validate(); 74 74 … … 76 76 CHECK_CLOSE ( 1.0, normcoef ( &M2, vec ( "-3 3 " ), vec ( "-3 3 " ) ), 0.1 ); 77 77 78 int N = 3;78 int N = 6; 79 79 mat Smp = M2.sample_mat ( N ); 80 80 81 vec exp_ll ( "-5.0 -2.53563 -2.62171 " );81 vec exp_ll ( "-5.0 -2.53563 -2.62171 -5.0 -2.53563 -2.62171" ); 82 82 vec ll = M2.evallog_mat ( Smp ); 83 83 CHECK_CLOSE ( exp_ll, ll, 5.0 ); 84 84 85 check_mean ( M2, N, mu0, 1.0 );85 check_mean ( M2, N, 0.5*mu0+0.5*vec("-1.2 -0.1"), 1.0 ); 86 86 87 87 mat observedR ( "0.740142 -0.259015; -0.259015 1.0302" ); … … 94 94 95 95 // marginal mean 96 CHECK_CLOSE ( vec ( " 1.0" ), Mg->mean(), 0.1 );96 CHECK_CLOSE ( vec ( "0.5" ), Mg->mean(), 0.1 ); 97 97 } 98 98 -
library/tests/testsuite/mmix.cfg
r717 r799 26 26 mu = [ 0, 0 ]; 27 27 R = ( "matrix", 2, 2, [ 1.2, 0.3, 0.3, 5.0 ] ); 28 rv : 29 { 30 class = "RV"; 31 names = ( "{mmixx}" ); 32 sizes = 2; 33 }; 28 34 } 29 35 );