Changeset 629 for library/tests

Show
Ignore:
Timestamp:
09/18/09 00:17:11 (15 years ago)
Author:
smidl
Message:

egiw.variance works for multidimensional + cleanup in tests

Location:
library/tests
Files:
2 removed
4 modified

Legend:

Unmodified
Added
Removed
  • library/tests/CMakeLists.txt

    r607 r629  
    77link_directories (./unittest-cpp) 
    88 
    9 SET(testutil_src egiw_harness.cpp egiw_harness.h epdf_harness.cpp epdf_harness.h mat_checks.cpp mat_checks.h  
     9SET(testutil_src epdf_harness.cpp epdf_harness.h mat_checks.cpp mat_checks.h  
    1010        mpdf_harness.cpp mpdf_harness.h square_mat_point.cpp square_mat_point.h test_util.cpp test_util.h) 
    1111 
  • library/tests/arx_straux_test.cpp

    r607 r629  
    55 
    66TEST(test_arx_straux){ 
    7 mat A="[   0.8147    0.9134    0.2785;" 
     7mat A="0.8147    0.9134    0.2785;" 
    88    "0.9058    0.6324    0.5469;" 
    9     "0.1270    0.0975    0.9575]"; 
     9    "0.1270    0.0975    0.9575"; 
    1010 
    11 mat B="[0.9649    0.9572    0.1419;" 
     11mat B="0.9649    0.9572    0.1419;" 
    1212    "0.1576    0.4854    0.4218;" 
    13     "0.9706    0.8003    0.9157]"; 
     13    "0.9706    0.8003    0.9157"; 
    1414//when updateing matrices do not forget to update CHECK_EQUAL below!!! 
    1515         
  • library/tests/egiw.cfg

    r473 r629  
    11data = ( 
    22{ 
    3   class = "egiw_harness"; 
     3  class = "epdf_harness"; 
    44  epdf = { 
    55    class = "egiw"; 
     
    1313  }; 
    1414  mean = [ 1.1, 0.1 ]; 
    15   lognc = 3.39463; 
    1615  variance = [ 0.01, 8e-05 ]; 
    1716  support = ( "matrix", 2, 2, [ -2.0, 4.0, 0.01, 2.0 ] ); 
     
    2019}, 
    2120{ 
    22   class = "egiw_harness"; 
     21  class = "epdf_harness"; 
    2322  epdf = { 
    2423    class = "egiw"; 
    25     V = ( "matrix", 2, 2, [ 20.0, 8.0, 8.0, 4.0 ] ); 
    26     nu = 4.0; 
     24    V = ( "matrix", 2, 2, [ 200.0, 80.0, 80.0, 40.0 ] ); 
     25    nu = 40.0; 
    2726    dimx = 1; 
    2827    rv :  
     
    3231    }; 
    3332  }; 
    34   mean = [ 2, -4 ]; 
    35   lognc = 0.451583; 
    36   variance = [ -1, -16 ]; 
     33  mean = [2.0, 1.14286]; 
     34  variance = [0.0285714, 0.0395795]; 
    3735} ); 
    3836 
  • library/tests/egiw_test.cpp

    r557 r629  
    55#include "itpp_ext.h" 
    66#include "epdf_harness.h" 
    7 #include "egiw_harness.h" 
    87#include "mat_checks.h" 
    98#include "UnitTest++.h"