Changeset 3433 for branches/0.13stable
 Timestamp:
 Oct 27, 2015, 6:40:36 AM (6 years ago)
 Location:
 branches/0.13stable
 Files:

 2 edited
Legend:
 Unmodified
 Added
 Removed

branches/0.13stable/test/roc.cc
r3114 r3433 230 230 suite.err() << "error: expected pvalue>0.5\n found: " 231 231 << roc.p_right() << "\n"; 232 } 233 if (roc.p_value() > 1.0) { 234 suite.err() << "error: expected pvalue <= 1\n found: " 235 << roc.p_value() << "\n"; 236 suite.add(false); 232 237 } 233 238 } 
branches/0.13stable/yat/statistics/ROC.cc
r3023 r3433 228 228 return std::min(p, 1.0); 229 229 } 230 return 2*get_p_approx( area());230 return 2*get_p_approx(std::max(area(), 1area())); 231 231 } 232 232
Note: See TracChangeset
for help on using the changeset viewer.