Skip to content

← signal_processing package

ExponentialMovingAverage

Smooth the given data using an exponentially decaying window.

This filter outputs a weighted average of the past data, where more recent samples are weighted more strongly. The time constant of this exponential weighting is an adjustable parameter. This filter is meant to be run on continuous data. Therefore, it should not be preceded by a Segmentation node. This node maintains internal state. More Info... 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

forget_halftime

Half-life time constant of filter, in seconds. Data that lies this many seconds in the past will be weighted half as much as the most recent data when designing the filter, and data twice as old will be weighted by 1/4, etc. Can also be thought of as the half-life of the weights for an exponentially weighted filter.

  • verbose name: Adaptive Filter Half-Life Constant
  • default value: None
  • port type: FloatPort
  • value type: float (can be None)

e_folding_time

The e-fold time constant of filter , in seconds. Data that lies this many seconds in the past will be weighted 1/e as much as the most recent data when designing the filter.

  • verbose name: Adaptive Filter E-Folding Time Constant
  • default value: None
  • port type: FloatPort
  • value type: float (can be None)

forget_factor

The weighting of the incoming sample. This is an alternative specification of the EMA wherein the sample is weighted by 0 < alpha << 1, and the mean is weighted by (1-alpha).

  • verbose name: Forget Factor
  • default value: None
  • port type: FloatPort
  • value type: float (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)