Changeset 3023 for trunk/yat/statistics/tTest.cc
 Timestamp:
 Apr 6, 2013, 4:35:36 AM (9 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/yat/statistics/tTest.cc
r2992 r3023 35 35 namespace theplu { 36 36 namespace yat { 37 namespace statistics { 37 namespace statistics { 38 38 39 tTest::tTest(void) 39 tTest::tTest(void) 40 40 : updated_(false) 41 41 { 42 42 } 43 43 44 44 45 45 void tTest::add(double x, bool target, double w) 46 46 { … … 54 54 } 55 55 56 56 57 57 void tTest::reset(void) 58 58 { … … 76 76 77 77 78 double tTest::p_ value(void) const78 double tTest::p_left(void) const 79 79 { 80 double p=2*p_value_one_sided(); 81 return std::min(p,2p); 80 assert(0 && "not implemented yet"); 82 81 } 83 82 84 83 85 double tTest::p_ value_one_sided(void) const84 double tTest::p_right(void) const 86 85 { 87 86 double t=t_; … … 96 95 } 97 96 97 98 double tTest::p_value(void) const 99 { 100 double p=2*p_right(); 101 return std::min(p,2p); 102 } 103 104 105 double tTest::p_value_one_sided(void) const 106 { 107 return p_right(); 108 } 109 98 110 }}} // of namespace statistics, yat, and theplu
Note: See TracChangeset
for help on using the changeset viewer.