MCPcopy Create free account
hub / github.com/FastLED/FastLED / precision

Method precision

tests/fl/audio/detector/downbeat.hpp:50–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers 1

downbeat.hppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected