Fork me on GitHub

remember

Behaves as a single-datapoint memory cell, which is reset when its first argument is true.

remember allows you to save a chosen datapoint. Whenever the argument of remember is true, it saves the current datapoint, and keeps repeating it while the argument is false.

An example will explain this very nicely. If your data is:

20,40,-50,20,-10,3,-9,40,50

then the transform remember($ < 0) will return:

20,20,-50,-50,-10,-10,-9,-9,-9

The reason the 20 is repeated at the beginning, despite it being positive, is because remember is always initialized with your first datapoint.


Transform Details

One-To-OneStatelessPeekInput SchemaOutput Schema
TrueFalseFalse

Arguments

#DescriptionOptionalConstantHijackedDefault
1The statement to check for truth. If true, it will remember the current datapointFalseFalseFalse
2Optional, if this is set, then the result of this argument is stored instead of the datapointTrueFalseFalseNone

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!