Skip to content

Time Series Operator

The Time Series Operator worker receives one or more time series from upstream workers, applies a user-supplied mathematical expression, and returns the result to the workflow.


Parameters

Expression

A mathematical expression to evaluate against the named series variables. All basic arithmetic operators are supported, along with the following built-in functions:

Function Description
log(x) Natural logarithm of x, element-wise. Returns a scalar if x is a scalar
exp(x) Exponential of all elements in the input list
sum(x) Sum of all elements in the input list

The return type of the expression depends on the inputs. For example:

  • a * 2 where a is a list → result is a list
  • sum(a) * b where a is a list and b is a number → result is a number

Series

A list of time series paired with variable names for use in the expression.

Field Description
Time Series Select a time series from a previous worker using Upstream Data
Variable Name The name used to reference this series in the Expression field. Accepts String variant

Click Add Series to include additional time series in the expression. Click Add Scalar Variable to add a scalar input that can also be referenced in the expression.


Result

Once the worker finishes successfully, it returns an object containing the expression result. You can check the Output Types article to learn more about result object types.

  • Results (list of lists)