WithinTolerance Filter¶
-
template<typename T, T Tolerance>
struct WithinTolerance¶ Filter that accepts changes within a tolerance threshold.
This filter is the inverse of OutsideTolerance, accepting only small changes that stay within the specified tolerance range.
- Since
v0.1.0
// Example: Only propagate if change is within 1.0 Signal<float, 10, WithinTolerance<float, 1.0>> sensor(0.0);Warning
Only accepts arithmetic types (integral and floating-point).
Tolerance must be a positive value.
See Also¶
Numerical Filters - Overview