Changeset 536 for library/tests

Show
Ignore:
Timestamp:
08/16/09 18:13:31 (15 years ago)
Author:
smidl
Message:

removal of unused functions _e() and samplecond(,) and added documentation lines

Location:
library/tests
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • library/tests/arx_elem_test.cpp

    r477 r536  
    1212        mat mu ( 1, 1 ); 
    1313        mat R ( 1, 1 ); 
    14         Ar._e()->mean_mat ( mu, R ); 
     14        Ar.posterior().mean_mat ( mu, R ); 
    1515        cout << "Prior moments: mu=" << mu << ", R=" << R << endl; 
    1616 
     
    2424        // Ar is now filled with estimates of N(0,1); 
    2525        cout << "Empirical moments: mu=" << sum ( smp ) / ndat << ", R=" << sum_sqr ( smp ) / ndat - pow ( sum ( smp ) / ndat, 2 ) << endl; 
    26         Ar._e()->mean_mat ( mu, R ); 
     26        Ar.posterior().mean_mat ( mu, R ); 
    2727        cout << "Posterior moments: mu=" << mu << ", R=" << R << endl; 
    2828 
  • library/tests/epdf_harness.cpp

    r529 r536  
    210210        Array<vec> actual(CurrentContext::max_trial_count); 
    211211        do { 
    212                 mat smp = mep.samplecond ( vec ( 0 ), nsamples ); 
     212                mat smp = mep.samplecond_m ( vec ( 0 ), nsamples ); 
    213213                vec emu = sum ( smp, 2 ) / nsamples; 
    214214                actual( tc ) = emu; 
     
    231231        Array<mat> actual(CurrentContext::max_trial_count); 
    232232        do { 
    233                 mat smp = mep.samplecond ( vec ( 0 ), nsamples ); 
     233                mat smp = mep.samplecond_m ( vec ( 0 ), nsamples ); 
    234234                vec emu = sum ( smp, 2 ) / nsamples; 
    235235                mat er = ( smp * smp.T() ) / nsamples - outer_product ( emu, emu );