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

Function averageActiveBins

tests/misc/fft_sweep.hpp:150–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150float averageActiveBins(fl::span<const SweepFrame> frames) {
151 float sum = 0.0f;
152 for (fl::size i = 0; i < frames.size(); ++i) {
153 sum += static_cast<float>(frames[i].activeBins);
154 }
155 return sum / static_cast<float>(frames.size());
156}
157
158float worstConcentration(fl::span<const SweepFrame> frames) {
159 float worst = 1.0f;

Callers 1

fft_sweep.hppFile · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected