Assume input signal and discrete output. The signal can cross the limit at 1000 times per second, but it is desired that the discrete output changes at the most once every 15 seconds. See image below:
$U$ is the Signal, $A$ is the comparator output, $B$ is the filtered output. The goal is to filter out the output changes in region $R$.
Are there theories to dealing with volatility around the limit such as in region $R$ ?
At this point I am thinking of an algorithm where state is only changed if the signal is persistent for time period $T$, is there a name for such an algorithm?