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

Function countNonMonotonicSteps

tests/misc/fft_sweep.hpp:109–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109int countNonMonotonicSteps(fl::span<const SweepFrame> frames) {
110 int count = 0;
111 for (fl::size i = 1; i < frames.size(); ++i) {
112 if (frames[i].peakBin < frames[i - 1].peakBin) {
113 count++;
114 }
115 }
116 return count;
117}
118
119int countJitterEvents(fl::span<const SweepFrame> frames) {
120 int count = 0;

Callers 1

fft_sweep.hppFile · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected