calculate
fun calculate(input: Boolean, timestamp: ComparableTimeMark = TimeSource.Monotonic.markNow()): Boolean(source)
Applies the edge counter filter to the input stream.
Return
True if the required number of edges have occurred within the time window and the input is currently true; false otherwise.
Parameters
input
The current value of the input stream.
timestamp
the current time (default: TimeSource.Monotonic.markNow())