Changeset 529 for trunk/lib/statistics/tScore.cc
 Timestamp:
 Mar 1, 2006, 3:03:27 PM (16 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/lib/statistics/tScore.cc
r526 r529 50 50 statistics::AveragerWeighted positive; 51 51 statistics::AveragerWeighted negative; 52 dof_=target.size()2;53 52 for(size_t i=0; i<target.size(); i++){ 54 53 if (target.binary(i)) … … 60 59 double s2=(positive.sum_xx_centered()+negative.sum_xx_centered())/ 61 60 (positive.n()+negative.n()2); 62 t_=diff/sqrt(s2*(1.0/positive.sum_w()+1.0/negative.sum_w())); 61 t_=diff/sqrt(s2*(1.0/positive.sum_w()+1.0/negative.sum_w())); 63 62 if (t_<0 && absolute_) 64 63 t_=t_; 64 65 if(positive.n()==0  negative.n()==0  66 positive.sum_w()==0  positive.sum_w()==0) 67 t_=0; 68 dof_=target.size()2; 65 69 66 70 return t_;
Note: See TracChangeset
for help on using the changeset viewer.