| 156 | } |
| 157 | |
| 158 | float worstConcentration(fl::span<const SweepFrame> frames) { |
| 159 | float worst = 1.0f; |
| 160 | for (fl::size i = 0; i < frames.size(); ++i) { |
| 161 | if (frames[i].concentration < worst) { |
| 162 | worst = frames[i].concentration; |
| 163 | } |
| 164 | } |
| 165 | return worst; |
| 166 | } |
| 167 | |
| 168 | int maxActiveBins(fl::span<const SweepFrame> frames) { |
| 169 | int maxBins = 0; |