| 107 | } |
| 108 | |
| 109 | int 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 | |
| 119 | int countJitterEvents(fl::span<const SweepFrame> frames) { |
| 120 | int count = 0; |