Changeset 3024


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

fixes #755

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEWS

    r3023 r3024  
    99  - ROC::p_value_one_sided(void is now deprecated (ticket #689)
    1010  - ROC::area(void) is now declared const (ticket #754)
     11  - tTest::score(void) is now declared const (ticket #755)
    1112
    1213  A complete list of closed tickets can be found here [[br]]
  • 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
  • trunk/yat/statistics/tTest.h

    r3023 r3024  
    8888       \return t-score.
    8989    */
    90     double score(void);
     90    double score(void) const;
    9191
    9292    /**
     
    120120  private:
    121121
    122     double dof_;
    123     bool updated_;
    124     double t_;
     122    mutable double dof_;
     123    mutable bool updated_;
     124    mutable double t_;
    125125    AveragerWeighted pos_;
    126126    AveragerWeighted neg_;
Note: See TracChangeset for help on using the changeset viewer.