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

Function averageConcentration

tests/misc/fft_sweep.hpp:142–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142float averageConcentration(fl::span<const SweepFrame> frames) {
143 float sum = 0.0f;
144 for (fl::size i = 0; i < frames.size(); ++i) {
145 sum += frames[i].concentration;
146 }
147 return sum / static_cast<float>(frames.size());
148}
149
150float averageActiveBins(fl::span<const SweepFrame> frames) {
151 float sum = 0.0f;

Callers 1

fft_sweep.hppFile · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected