Fixed a bug in the threshold given in the ROC output.
[data-tool.git] / data-tool.cc
index bcf19b3..0a2e049 100644 (file)
@@ -305,7 +305,7 @@ int main(int argc, char **argv) {
           if(tmp[n].value < tmp[n+1].value) {
             cout << double(nb_fp)/double(nb_rn) << " "
                  << 1 - double(nb_fn) / double(nb_rp) << " "
-                 << (tmp[n].value + tmp[n+1].value) << " "
+                 << (tmp[n].value + tmp[n+1].value)/2 << " "
                  << endl;
           }
         }