Skip to content
Snippets Groups Projects

Update documentation and commands: FAR->FPR, FRR->FNR

Merged Theophile GENTILHOMME requested to merge fprfnr into master
All threads resolved!
9 files
+ 127
116
Compare changes
  • Side-by-side
  • Inline
Files
9
+ 6
6
@@ -39,13 +39,13 @@ bob::measure::farfrr(const blitz::Array<double, 1> &negatives,
const blitz::Array<double, 1> &positives,
double threshold) {
if (std::isnan(threshold)){
bob::core::error << "Cannot compute FAR or FRR with threshold NaN.\n";
bob::core::error << "Cannot compute FPR (FAR) or FNR (FRR) with threshold NaN.\n";
return std::make_pair(1.,1.);
}
if (!negatives.size())
throw std::runtime_error("Cannot compute FAR when no negatives are given");
throw std::runtime_error("Cannot compute FPR (FAR) when no negatives are given");
if (!positives.size())
throw std::runtime_error("Cannot compute FRR when no positives are given");
throw std::runtime_error("Cannot compute FNR (FRR) when no positives are given");
blitz::sizeType total_negatives = negatives.extent(blitz::firstDim);
blitz::sizeType total_positives = positives.extent(blitz::firstDim);
blitz::sizeType false_accepts = blitz::count(negatives >= threshold);
@@ -395,13 +395,13 @@ double bob::measure::rocch2eer(const blitz::Array<double, 2> &pfa_pmiss) {
/**
* This function computes the ROC coordinates for the given positive and
* negative values at the given FAR positions.
* negative values at the given FPR (FAR) positions.
*
* @param negatives Impostor scores
* @param positives Client scores
* @param far_list The list of FAR values where the FRR should be calculated
* @param far_list The list of FPR (FAR) values where the FNR (FRR) should be calculated
*
* @return The ROC curve with the FAR in the first row and the FRR in the
* @return The ROC curve with the FPR in the first row and the FNR in the
* second.
*/
blitz::Array<double, 2>
Loading