CumulativeSum¶
Calculate the cumulative sum of the data over the specified axis.
This node does not change the shape or axes of the signal, but each value will be replaced by the sum of values up to that point. Therefore the last value along the axis (i.e., Time) will be the final sum of all previous values. If the Time or Instance axis is selected and data is streaming data, the sum will be cumulative across packets (in other words, the sum along all time points or instances received so far). If another axis is selected (i.e., Frequencies) with streaming data, the sum is computed for the current packet only (i.e., the sum across all Frequencies in the current packet). NaN values are ignored (treated as zero). If the packet contains another axis than the selected axis, a cumulative sum is computed separately for each element in that axis. (i.e., if Time is selected and the packet contains a Time and Space axis, the last time point for a given channel in the Space axis will contain the sum of values for that channel received so far.) Version 1.0.1
Ports/Properties¶
data¶
Data to process.
- verbose name: Data
- default value: None
- port type: DataPort
- value type: Packet (can be None)
- data direction: INOUT
axis¶
Calculate the cumulative sum over this axis.
- verbose name: Axis
- default value: time
- port type: ComboPort
- value type: str (can be None)
set_breakpoint¶
Set a breakpoint on this node. If this is enabled, your debugger (if one is attached) will trigger a breakpoint.
- verbose name: Set Breakpoint (Debug Only)
- default value: False
- port type: BoolPort
- value type: bool (can be None)
metadata¶
User-definable meta-data associated with the node. Usually reserved for technical purposes.
- verbose name: Metadata
- default value: {}
- port type: DictPort
- value type: dict (can be None)