Ignore:
Timestamp:
Oct 30, 2011, 6:08:14 AM (11 years ago)
Author:
Peter
Message:

merge release 0.7.3 into trunk. A couple of conflict and needed fix test related to #669

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/yat/statistics/ROC.cc

    r2595 r2601  
    3030#include <cassert>
    3131#include <cmath>
     32#include <limits>
    3233#include <utility>
    3334
     
    150151      area = auc.score(multimap_);
    151152    }
     153    if (std::isnan(area))
     154      return std::numeric_limits<double>::quiet_NaN();
    152155    if (use_exact_method()) {
    153156      double p = 0;
     
    174177      area = auc.score(multimap_);
    175178    }
     179    if (std::isnan(area))
     180      return std::numeric_limits<double>::quiet_NaN();
    176181    if (use_exact_method())
    177182      return p_exact(area);
Note: See TracChangeset for help on using the changeset viewer.