| 48 | int trueNegatives = 0; // Correctly not detecting non-downbeats |
| 49 | |
| 50 | float precision() const { |
| 51 | int detected = truePositives + falsePositives; |
| 52 | return detected > 0 ? static_cast<float>(truePositives) / detected : 0.0f; |
| 53 | } |
| 54 | |
| 55 | float recall() const { |
| 56 | int actual = truePositives + falseNegatives; |