Ignore:
Timestamp:
Apr 6, 2013, 8:38:51 AM (9 years ago)
Author:
Peter
Message:

fixes #755

File:
1 edited

Legend:

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

    r3023 r3024  
    6565
    6666
    67   double tTest::score(void)
     67  double tTest::score(void) const
    6868  {
    6969    if (!updated_){
     
    8484  double tTest::p_right(void) const
    8585  {
    86     double t=t_;
    87     double dof=dof_;
    88     if (!updated_){
    89       tScore score(false);
    90       t = score.score(pos_, neg_, &dof);
    91     }
    92     if (!dof)
     86    double t = score();
     87    if (!dof_)
    9388      return 1.0;
    94     return gsl_cdf_tdist_Q(t, dof);
     89    return gsl_cdf_tdist_Q(t, dof_);
    9590  }
    9691
Note: See TracChangeset for help on using the changeset viewer.