Changeset 2314 for branches/0.6-stable
- Timestamp:
- Aug 20, 2010, 12:26:13 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/0.6-stable/test/fisher_test.cc
r1797 r2314 20 20 */ 21 21 22 #include <climits> 23 22 24 #include "Suite.h" 23 25 … … 28 30 void test_p_value_approximative(test::Suite&); 29 31 void test_p_value_exact(test::Suite&); 32 void test_large_numbers(test::Suite&); 30 33 31 34 int main(int argc, char* argv[]) … … 65 68 } 66 69 test_p_value(suite); 70 test_large_numbers(suite); 67 71 return suite.return_value(); 68 72 } … … 116 120 117 121 } 122 123 void test_large_numbers(test::Suite& suite) 124 { 125 statistics::Fisher f; 126 double oddsratio = f.oddsratio(1166,63326825-1166,1095,66074759-1095); 127 if (oddsratio<0.5 || oddsratio>2) { 128 suite.err() << "oddsratio: " << oddsratio << "\n"; 129 suite.err() << "expected ~ 1\n"; 130 suite.xadd(false); 131 } 132 133 }
Note: See TracChangeset
for help on using the changeset viewer.