Averager

AsTeRICS Configuration Suite

Averager

Component Type: Processor (Subcategory: Basic Math)

The averager component takes an input stream and forwards the average of certain amount of buffered last inputs. The size of the buffer can be set via a property. The component can be used to eliminate spikes in an input data stream. Furthermore the unit can also be used as an accumulator which accumulates all inputs within a certain time interval.

Screenshot: Averager plugin Averager plugin

Input Port Description

  • input [double]: This port reads the inputs to be averaged.

Output Port Description

  • output [double]: This port provides the current average of the buffered inputs.

Properties

  • mode [integer]: Denotes the operating mode of the unit, three modes are available:
    • average: unit performs averaging calculations and emits double values average with integer.
    • output: unit performs calculations and rounds result to integer.
    • accumulate: unit accumulates inputs for certain amount of time.
  • bufferSize [integer]: Specifies the size of the buffer in the averaging modes or the amount of milliseconds to accumulate in the accumulator mode.