Changeset 454

Show
Ignore:
Timestamp:
07/30/09 16:44:27 (15 years ago)
Author:
smidl
Message:

configurations for epdf tests & minor fixes

Location:
library/tests
Files:
6 modified

Legend:

Unmodified
Added
Removed
  • library/tests/egiw.cfg

    r442 r454  
    44  epdf = { 
    55    class = "egiw"; 
    6     V = ( "matrix", 2, 2, [ 12.2, 11.0, 11.0, 10.0 ] ); 
     6    V = ( "matrix", 2, 2, [ 13.1, 11.0, 11.0, 10.0 ] ); 
    77    nu = 10; 
    88    dimx = 1.0; 
     
    1212    }; 
    1313  }; 
    14   mean = [ 1.1, 0.02 ]; 
     14  mean = [ 1.1, 0.1 ]; 
    1515  lognc = 11.45368; 
    16   variance = [ 0.002, 8e-05 ]; 
     16  variance = [ 0.01, 8e-05 ]; 
    1717  support = ( "matrix", 2, 2, [ -2.0, 4.0, 0.01, 2.0 ] ); 
    1818  nbins = [ 100, 200 ]; 
  • library/tests/emix_test.cpp

    r394 r454  
    3434        enorm<ldmat> E1; E1.set_rv ( xy ); 
    3535                 
    36         it_file iti("xxx"); 
    37         mat R; vec mu; 
    38         iti >> Name("R") >>R; 
    39         iti >> Name("mu") >>mu; 
    40  
    41         cout << mu << R <<endl; 
    42         E1.set_parameters( mu, R);//"1.00054 1.0455" , mat ( "0.740142 -0.259015; -0.259015 1.0302" )); 
     36        E1.set_parameters( "1.00054 1.0455" , mat ( "0.740142 -0.259015; -0.259015 1.0302" )); 
    4337        enorm<ldmat> E2;E2.set_rv ( xy ); 
    4438        E2.set_parameters( "-1.2 -0.1" , mat ( "1 0.4; 0.4 0.5" )); 
  • library/tests/enorm.cfg

    r450 r454  
    1717  integral = 1.0; 
    1818  R = ( "matrix", 2, 2, [ 1.0, -0.5, -0.5, 2.0 ] ); 
     19  marginal_rv =     { 
     20      class = "RV"; 
     21      names = ( "x" ); 
     22    }; 
     23 
    1924}, 
    2025{ 
     
    3338  variance = [ 5.0, 5.2 ]; 
    3439  support = ( "matrix", 2, 2, [ -10.0, 10.0, -10.0, 10.0 ] ); 
     40  R = ( "matrix", 2, 2, [ 5.0, -0.05, -0.05, 5.2 ] ); 
    3541  nbins = [ 200, 200 ]; 
    3642  integral = 1.0; 
     
    5157  lognc = 2.11768; 
    5258  variance = [ 1 ]; 
     59  R = 1.0; 
    5360}, 
    5461{ 
     
    6673  mean = 7.0; 
    6774  variance = [ 1 ]; 
     75  R = 1.0; 
    6876}, 
    6977{ 
     
    8593  class = "epdf_harness"; 
    8694  epdf = { 
    87     class = "enorm<ldmat>"; 
     95    class = "enorm<chmat>"; 
    8896    mu = ( "matrix", 1, 2, [ 0.0, 2.0 ] ); 
    8997    R = ( "matrix", 2, 2, [ 2.0, 0.0, 0.0, 0.5 ] ); 
     
    96104  mean = [ 0.0, 2.0 ]; 
    97105  variance = [ 2.0, 0.5 ]; 
     106  R = ( "matrix", 2, 2, [ 2.0, 0.0, 0.0, 0.5 ] ); 
    98107} ); 
    99108 
  • library/tests/enorm_test.cpp

    r450 r454  
    4545    ParticularUI<enorm<fsqmat> >("enorm<fsqmat>")); 
    4646 
     47 template<> 
     48const ParticularUI<enorm<chmat> > &ParticularUI<enorm<chmat> >::factory( 
     49    ParticularUI<enorm<chmat> >("enorm<chmat>")); 
     50 
    4751TEST(test_enorm) { 
    4852    RV::clear_all(); 
  • library/tests/mepdf.cfg

    r448 r454  
    1616  }; 
    1717  cond = [ 1.5, 1.7 ]; 
    18   mean = [ 1.0763, -0.949144 ]; 
    19   R = ( "matrix", 2, 2, [ 0.970164, -0.483967, -0.483967, 2.0415 ] ); 
     18  mean = [ 1.1, -1.0 ]; 
     19  R = ( "matrix", 2, 2, [ 1.0, -0.5, -0.5, 2.0 ] ); 
    2020} ); 
    2121 
  • library/tests/mgamma.cfg

    r447 r454  
    1919  cond = [ 1.5, 1.7 ]; 
    2020  mean = [ 1.5, 1.7 ]; 
    21   R = ( "matrix", 2, 2, [ 2.43206, -0.0487123, -0.0487123, 2.30866 ] ); 
     21  R = ( "matrix", 2, 2, [ 2.25, 0.0, 0.0, 2.89 ] ); 
    2222} ); 
    2323