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

Function countJitterEvents

tests/misc/fft_sweep.hpp:119–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119int countJitterEvents(fl::span<const SweepFrame> frames) {
120 int count = 0;
121 for (fl::size i = 2; i < frames.size(); ++i) {
122 if (frames[i].peakBin == frames[i - 2].peakBin &&
123 frames[i].peakBin != frames[i - 1].peakBin) {
124 count++;
125 }
126 }
127 return count;
128}
129
130int countMisplacedPeaks(fl::span<const SweepFrame> frames) {
131 int count = 0;

Callers 1

fft_sweep.hppFile · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected