Skip to content

Commit

Permalink
Solving the issue #4
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagofrepereira2012 committed Dec 11, 2015
1 parent 6bc1a24 commit a827995
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bob/measure/cpp/error.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,10 @@ blitz::Array<double,2> bob::measure::roc_for_far(const blitz::Array<double,1>& n
}
// check, if we have reached a new FAR limit,
// i.e. if the relative number of negative similarities is greater than 1-FAR (which is the CRR)
if ((double)neg_index / (double)n_neg > 1. - far_list(far_index)){


if (((double)neg_index / (double)n_neg > 1. - far_list(far_index)) &&
!(bob::core::isClose ((double)neg_index / (double)n_neg, 1. - far_list(far_index), 1e-9, 1e-9))) {
// copy the far value
retval(0,far_index) = far_list(far_index);
// calculate the FRR for the current FAR
Expand Down

0 comments on commit a827995

Please sign in to comment.