From: Francois Fleuret Date: Fri, 24 Jul 2009 10:56:21 +0000 (+0200) Subject: Fixed a bug in the threshold given in the ROC output. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=d38ae4b64baf473b0f1b1247d93ef980ebf139f2;p=data-tool.git Fixed a bug in the threshold given in the ROC output. --- diff --git a/data-tool.cc b/data-tool.cc index bcf19b3..0a2e049 100644 --- a/data-tool.cc +++ b/data-tool.cc @@ -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; } }