Changeset 113


Ignore:
Timestamp:
Jul 7, 2004, 12:58:21 PM (18 years ago)
Author:
Peter
Message:

modified to match ROC.cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/test_roc.cc

    r79 r113  
    2424    value(i)=i;
    2525  theplu::cpptools::ROC roc(target, value);
    26   double area = roc.area();
     26  double area = roc.score();
    2727  if (area!=1.0){
    2828    cerr << "test_roc: area should be 1.0" << endl;
    2929    ok = false;
    3030  }
    31   double p = roc.get_p(area);
     31  double p = roc.p_value();
    3232  double p_matlab = 0.00000115;
    3333  if (p/p_matlab > 1.01 | p/p_matlab < 0.99){
     
    3636  }
    3737  roc.minimum_size(20);
    38   p = roc.get_p(area);
     38  p = roc.p_value();
    3939  if (p > pow(10, -8.0) | p < pow(10, -9.0)){
    4040    cerr << "get_p_exact: p-value not correct" << endl;
Note: See TracChangeset for help on using the changeset viewer.