SignChange Filter¶
-
template<typename T>
struct SignChange¶ Filter that only accepts values when the sign changes (positive/negative).
This filter propagates changes only when the value transitions between positive and negative (or vice versa), detecting zero crossings.
- Since
v0.1.0
// Example: Detect zero crossings in a signal Signal<float, 10, SignChange<float>> waveform(0.0);Warning
Only accepts arithmetic types (integral and floating-point).
See Also¶
Numerical Filters - Overview