EveryNthChange Filter¶
-
template<typename T, size_t N>
struct EveryNthChange¶ Filter that propagates every Nth change.
This stateful filter counts changes and propagates only when the count reaches the specified interval
N, effectively downsampling signal changes.- Since
v0.1.0
// Example: Propagate every 5th change Signal<int, 10, EveryNthChange<int, 5>> sampled(0);Note
Stateful filter. Maintains change counter.
Warning
Nmust be greater than 0.
See Also¶
Temporal Filters - Overview