return true, when input is below a constant for more than N sampling steps
[sim, reached, count, countup, reset] = ld_belowEpsForNStepsAdvanced(sim, ev, in, thr, N)
in * - input signal
thr - threshold constant
N - integer
If in is below thr for N time steps, reached = 1;
Otherwise reached is set to 0.