OutsideRange Filter¶
-
template<typename T, T MinVal, T MaxVal>
struct OutsideRange¶ Filter that only accepts values outside a specified range.
This filter propagates changes only when the new value falls outside the specified inclusive range
[MinVal, MaxVal], useful for detecting outliers.- Since
v0.1.0
// Example: Only propagate values outside normal range [20, 80] Signal<int, 10, OutsideRange<int, 20, 80>> outlier(50);Warning
Only accepts arithmetic types (integral and floating-point).
MinValmust be less than or equal toMaxVal.
See Also¶
Numerical Filters - Overview