<< " --help" << endl
<< " --roc" << endl
<< " --roc-surface" << endl
+ << " --error" << endl
<< " --normalize" << endl
<< " --histo" << endl
<< " --cumul" << endl
int i = 1;
- enum { UNKNOWN, ROC, ROC_SURFACE, HISTO, CUMUL, MISC } processing = UNKNOWN;
+ enum { UNKNOWN, ROC, ROC_SURFACE, ERROR, HISTO, CUMUL, MISC } processing = UNKNOWN;
// Parsing the command line arguments ////////////////////////////////
i++;
}
+ else if(strcmp(argv[i], "--error") == 0) {
+ check_single_processing(processing == UNKNOWN);
+ processing = ERROR;
+ i++;
+ }
+
else if(strcmp(argv[i], "--cumul") == 0) {
check_single_processing(processing == UNKNOWN);
processing = CUMUL;
case ROC:
case ROC_SURFACE:
+ case ERROR:
{
int nb_samples = 0, nb_samples_max = 1000;
<< endl;
}
}
- } else {
+ } else if(processing == ROC_SURFACE) {
double surface = 0;
double cx = double(nb_fp)/double(nb_rn), cy = 1 - double(nb_fn) / double(nb_rp);
for(int n = 0; n < nb_samples - 1; n++) {
}
}
cout << surface << endl;
+ } else {
+ for(int n = 0; n < nb_samples - 1; n++) {
+ if(x[tmp[n].index] >= 0) nb_fn++;
+ else nb_fp--;
+ if(tmp[n].value < tmp[n+1].value) {
+ cout << (tmp[n].value + tmp[n+1].value)/2 << " "
+ << double(nb_fp + nb_fn)/double(nb_rn + nb_rp) << " "
+ << endl;
+ }
+ }
}
delete[] x; delete[] y;