Improve threshold calculation in ROC, DET, and Precision and Recall plots

Merged Amir MOHAMMADI requested to merge roc-fixes into master
Edited by Amir MOHAMMADI

Merge request reports