Commit adf31e815ea202cc16aa3891535c3a4de7ebb75c
1 parent
8c57794e
genuineSearches vector explained
Showing
1 changed file
with
3 additions
and
0 deletions
openbr/core/eval.cpp
| @@ -196,7 +196,10 @@ float Evaluate(const Mat &simmat, const Mat &mask, const QString &csv, const QSt | @@ -196,7 +196,10 @@ float Evaluate(const Mat &simmat, const Mat &mask, const QString &csv, const QSt | ||
| 196 | QList<Comparison> comparisons; comparisons.reserve(simmat.rows*simmat.cols); | 196 | QList<Comparison> comparisons; comparisons.reserve(simmat.rows*simmat.cols); |
| 197 | 197 | ||
| 198 | // Flags rows as being mated or non-mated searches | 198 | // Flags rows as being mated or non-mated searches |
| 199 | + // Positive value: mated search, negative value: non-mated search | ||
| 200 | + // Value of 0: ignored search | ||
| 199 | QVector<int> genuineSearches(simmat.rows, 0); | 201 | QVector<int> genuineSearches(simmat.rows, 0); |
| 202 | + | ||
| 200 | int totalGenuineSearches = 0, totalImpostorSearches = 0; | 203 | int totalGenuineSearches = 0, totalImpostorSearches = 0; |
| 201 | int genuineCount = 0, impostorCount = 0, numNaNs = 0; | 204 | int genuineCount = 0, impostorCount = 0, numNaNs = 0; |
| 202 | for (int i=0; i<simmat.rows; i++) { | 205 | for (int i=0; i<simmat.rows; i++) { |