Skip to content

← statistics package

Centering

Produce zero-mean or 'centered' data by first calculating the mean of the data and then subtracting it.

Note that, if your data is segmented or otherwise comes in the form of multiple instances, you can decide whether the mean should be taken over the instances or over the time axis in each instance. You also can decide whether the mean should be updated on every chunk, or if it should only be updated on the calibration data (non-streaming chunks), and whether it should be recomputed on subsequent non-streaming chunks (e.g., subsequent test data). Version 1.1.0

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

Axis over which the statistic should be aggregated. For instance, if this is set to time, then the mean will be computed over time.

  • verbose name: Take Statistics Along Axis
  • default value: instance
  • port type: ComboPort
  • value type: str (can be None)

robust

Use robust estimator (median). Enabling this will make the node more robust to outlier elements, but if the data is clean, then the statistic will be somewhat less precise than it it could be.

  • verbose name: Use Robust Estimator
  • default value: False
  • port type: BoolPort
  • value type: bool (can be None)

adapt_on_streaming

Adapt state parameters on streaming chunks. If this is False (the default), then this node will not adapt itself on streaming chunks, i.e., only on non-streaming chunks, such as imported calibration recordings. This is useful if the streaming chunks would be too short to meaningfully sadapt the parameters on and the calibration recording is sufficietly similar to the streaming data for it to be meaningful to adapt the state only on these data. Or if set to True, the node will simply adapt itself on every chunk it receives, whether it is streaming or not.

  • verbose name: Adapt On Streaming Chunks
  • default value: False
  • port type: BoolPort
  • value type: bool (can be None)

initialize_once

Initialize (adapt state parameters) only once. If False, this node will recalibrate itself on any qualifying chunk (based on the setting of adapt on streaming chunks).

  • verbose name: Adapt Only Once
  • default value: True
  • port type: BoolPort
  • value type: bool (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)