Changeset 458
- Timestamp:
- 07/31/09 08:51:08 (16 years ago)
- Location:
- library/tests
- Files:
-
- 4 modified
Legend:
- Unmodified
- Added
- Removed
-
library/tests/egiw.cfg
r456 r458 17 17 support = ( "matrix", 2, 2, [ -2.0, 4.0, 0.01, 2.0 ] ); 18 18 nbins = [ 100, 200 ]; 19 integral = 1.0;20 19 tolerance = 0.2; 21 20 }, -
library/tests/enorm.cfg
r456 r458 15 15 variance = [ 1, 2 ]; 16 16 support = ( "matrix", 2, 2, [ -5.0, 5.0, -5.0, 5.0 ] ); 17 integral = 1.0;18 17 R = ( "matrix", 2, 2, [ 1.0, -0.5, -0.5, 2.0 ] ); 19 18 marginal_rv = { … … 40 39 R = ( "matrix", 2, 2, [ 5.0, -0.05, -0.05, 5.2 ] ); 41 40 nbins = [ 200, 200 ]; 42 integral = 1.0;43 41 tolerance = 0.5; 44 42 }, -
library/tests/epdf_harness.cpp
r456 r458 43 43 } 44 44 45 if (set.exists("integral")) {46 UI::get(integral, set, "integral");47 }48 49 45 if (set.exists("R")) { 50 46 UI::get(R, set, "R"); … … 78 74 79 75 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); 81 77 } 82 78 -
library/tests/epdf_harness.h
r456 r458 34 34 vec nbins; 35 35 int nsamples; 36 double integral;37 36 mat R; 38 37 double tolerance; … … 41 40 static void test_config(const char *config_file_name); 42 41 43 epdf_harness():nsamples(1000), integral(0),tolerance(0.1) { }42 epdf_harness():nsamples(1000), tolerance(0.1) { } 44 43 45 44 virtual void test(const char *config_name, int idx);