Changeset 2554


Ignore:
Timestamp:
Aug 17, 2011, 6:05:39 AM (10 years ago)
Author:
Peter
Message:

avoid code 'else if (true)'; prefer 'else'

File:
1 edited

Legend:

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

    r2553 r2554  
    7777    else if(x<0)
    7878      x += 0.5/(n_pos()*n_neg());
    79     else if (x==0)
     79    else
    8080      return 0.5;
    8181    double sigma = std::sqrt( ( n()+1.0 )/(12*n_pos()*n_neg()) );
Note: See TracChangeset for help on using the changeset viewer.