Changeset 458

Show
Ignore:
Timestamp:
07/31/09 08:51:08 (15 years ago)
Author:
vbarta
Message:

removed configurable integral value (constantly 1)

Location:
library/tests
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • library/tests/egiw.cfg

    r456 r458  
    1717  support = ( "matrix", 2, 2, [ -2.0, 4.0, 0.01, 2.0 ] ); 
    1818  nbins = [ 100, 200 ]; 
    19   integral = 1.0; 
    2019  tolerance = 0.2; 
    2120}, 
  • library/tests/enorm.cfg

    r456 r458  
    1515  variance = [ 1, 2 ]; 
    1616  support = ( "matrix", 2, 2, [ -5.0, 5.0, -5.0, 5.0 ] ); 
    17   integral = 1.0; 
    1817  R = ( "matrix", 2, 2, [ 1.0, -0.5, -0.5, 2.0 ] ); 
    1918  marginal_rv =     { 
     
    4039  R = ( "matrix", 2, 2, [ 5.0, -0.05, -0.05, 5.2 ] ); 
    4140  nbins = [ 200, 200 ]; 
    42   integral = 1.0; 
    4341  tolerance = 0.5; 
    4442}, 
  • library/tests/epdf_harness.cpp

    r456 r458  
    4343    } 
    4444 
    45     if (set.exists("integral")) { 
    46         UI::get(integral, set, "integral"); 
    47     } 
    48  
    4945    if (set.exists("R")) { 
    5046        UI::get(R, set, "R"); 
     
    7874 
    7975        CHECK_CLOSE_EX(mean, num_mean2(hepdf.get(), xb, yb, nbins(0), nbins(1)), 0.1); 
    80         CHECK_CLOSE_EX(integral, normcoef(hepdf.get(), xb, yb, nbins(0), nbins(1)), 0.1); 
     76        CHECK_CLOSE_EX(1.0, normcoef(hepdf.get(), xb, yb, nbins(0), nbins(1)), 0.1); 
    8177    } 
    8278 
  • library/tests/epdf_harness.h

    r456 r458  
    3434    vec nbins; 
    3535    int nsamples; 
    36     double integral; 
    3736    mat R; 
    3837    double tolerance; 
     
    4140    static void test_config(const char *config_file_name); 
    4241 
    43     epdf_harness():nsamples(1000), integral(0), tolerance(0.1) { } 
     42    epdf_harness():nsamples(1000), tolerance(0.1) { } 
    4443 
    4544    virtual void test(const char *config_name, int idx);