Changeset 3025


Ignore:
Timestamp:
Apr 6, 2013, 9:06:42 AM (9 years ago)
Author:
Peter
Message:

implement tTest::p_right(). closes #689

File:
1 edited

Legend:

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

    r3024 r3025  
    7878  double tTest::p_left(void) const
    7979  {
    80     assert(0 && "not implemented yet");
     80    double t = score();
     81    if (!dof_)
     82      return 1.0;
     83    return gsl_cdf_tdist_P(t, dof_);
    8184  }
    8285
Note: See TracChangeset for help on using the changeset viewer.