Quantized Filter¶
-
template<typename T, T StepSize>
struct Quantized¶ Filter that quantizes values to discrete steps before comparison.
This filter rounds values to the nearest multiple of
StepSizebefore comparing, creating discrete levels and reducing sensitivity to small changes.- Since
v0.1.0
// Example: Quantize to steps of 5 Signal<int, 10, Quantized<int, 5>> discrete(0);Warning
Only accepts arithmetic types (integral and floating-point).
StepSizemust be greater than 0.
See Also¶
Numerical Filters - Overview