Show
Ignore:
Timestamp:
09/16/10 13:22:11 (14 years ago)
Author:
smidl
Message:

new tests of egiw

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/tests/testsuite/epdf_test.cpp

    r1064 r1189  
    5353    mat wM = "1.1 0.9; 0.9 1.0"; 
    5454    eWishartCh eW; 
    55     eW.set_parameters ( wM / 100, 100 ); 
     55    eW.set_parameters ( wM , 10 ); 
    5656    eW.validate(); 
    5757    mat mea = zeros ( 2, 2 ); 
    58     mat Ch; 
     58    chmat Ch; 
    5959    for ( int i = 0; i < 100; i++ ) { 
    6060        Ch = eW.sample_mat(); 
    61         mea += Ch.T() * Ch; 
     61        mea += Ch.to_mat(); 
    6262    } 
    6363 
    6464    mat actual = mea / 100; 
    65     CHECK_CLOSE ( wM, actual, 0.1 ); 
     65    CHECK_CLOSE ( 10*wM, actual, 0.3 ); 
    6666} 
    6767