Fork me on GitHub

sum

Adds all of the values of the datapoints that pass through it

The sum transform sums up numeric values. Given the data:

[2,5,1,6]

running the transform sum will give:

[2,7,8,14]

Since the transform returns all intermediate values, and usually we only want the total sum, if last is frequently used to filter all datapoints but the final one:

sum | if last

When run on the above data, this transform returns [14], which is the total sum of all datapoints in the stream.


Transform Details

One-To-OneStatelessPeekInput SchemaOutput Schema
TrueFalseFalse

This Site

Contribute

ConnectorDB is a very new open-source project. If you are a designer/developer or ML enthusiast, head on over to the connectordb github, where you can choose which part of ConnectorDB you want to contribute towards! Pull requests or bug reports are welcome!