* @brief Reports whether a configured plot range hard-clamps the data into one sign, * so the samples cannot be bipolar and the per-frame scan can be skipped. A * degenerate range (pltMin == pltMax, including both zero) auto-scales instead, * so it is not a clamp. */
| 723 | * so it is not a clamp. |
| 724 | */ |
| 725 | static bool signClampedRange(const DataModel::Dataset& dataset) |
| 726 | { |
| 727 | if (!DSP::notEqual(dataset.pltMin, dataset.pltMax)) |
| 728 | return false; |
| 729 | |
| 730 | return (dataset.pltMin >= 0.0 && dataset.pltMax >= 0.0) |
| 731 | || (dataset.pltMin <= 0.0 && dataset.pltMax <= 0.0); |
| 732 | } |
| 733 | |
| 734 | /** |
| 735 | * @brief Refreshes the finite Y extremes that drive the area fill's bipolarity from |
no test coverage detected