tenzir / public-roadmap

The public roadmap of Tenzir
https://docs.tenzir.com/roadmap
4 stars 0 forks source link

Timeshift and Delay Operators #84

Closed dominiklohmann closed 6 months ago

dominiklohmann commented 10 months ago

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.

### Definition of Done
- [x] Implement `timeshift`
- [x] Implement `delay`
mavam commented 6 months ago

Shipped in https://github.com/tenzir/tenzir/pull/3701.