We want to create timeshift and delay operators to be able to replay a dataset in real-time.
The timeshift operator should adjust a given series of time values $X_0, ..., X_n$ to $X_n' = T + \frac{X_n - X_0}{P}$, where $T$ is the time where the first value arrives at the operator, and $P$ is a factor describing the replay speed that defaults to $1.0$.
The delay operator should delay its input events until a given series of time values is greater or equal to the current time, and then return its input unchanged.
We want to create
timeshift
anddelay
operators to be able to replay a dataset in real-time.The
timeshift
operator should adjust a given series of time values $X_0, ..., X_n
$ to $X_n' = T + \frac{X_n - X_0}{P}
$, where $T
$ is the time where the first value arrives at the operator, and $P
$ is a factor describing the replay speed that defaults to $1.0
$.The
delay
operator should delay its input events until a given series of time values is greater or equal to the current time, and then return its input unchanged.