Ignore:
Timestamp:
Apr 6, 2013, 4:35:36 AM (9 years ago)
Author:
Peter
Message:

closes #754. ROC::area() is now const

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/statistics/tTest.cc

    r2992 r3023  
    3535namespace theplu {
    3636namespace yat {
    37 namespace statistics { 
     37namespace statistics {
    3838
    39   tTest::tTest(void) 
     39  tTest::tTest(void)
    4040    : updated_(false)
    4141  {
    4242  }
    4343
    44  
     44
    4545  void tTest::add(double x, bool target, double w)
    4646  {
     
    5454  }
    5555
    56  
     56
    5757  void tTest::reset(void)
    5858  {
     
    7676
    7777
    78   double tTest::p_value(void) const
     78  double tTest::p_left(void) const
    7979  {
    80     double p=2*p_value_one_sided();
    81     return std::min(p,2-p);
     80    assert(0 && "not implemented yet");
    8281  }
    8382
    8483
    85   double tTest::p_value_one_sided(void) const
     84  double tTest::p_right(void) const
    8685  {
    8786    double t=t_;
     
    9695  }
    9796
     97
     98  double tTest::p_value(void) const
     99  {
     100    double p=2*p_right();
     101    return std::min(p,2-p);
     102  }
     103
     104
     105  double tTest::p_value_one_sided(void) const
     106  {
     107    return p_right();
     108  }
     109
    98110}}} // of namespace statistics, yat, and theplu
Note: See TracChangeset for help on using the changeset viewer.