Integrator

Module used to integrate its input over time. The output is calculated as, output(t) = alpha * output(t) + beta * input(t). Depending on the constants alpha and beta, the module can be used as leaky integrator or an accumulator. If they are set in the XML-file the constants minimum and maximum set the allowed range of the output. It will be clipped if it is outside the range.

Example XML definition

Example

  <module
      class = "Integrator"
      name = "Integrator"
      alpha = "0.9"
      beta = "0.1"
  />

Parameters

NameDescriptionTypeDefault
classThe class name for the module; must be "Integrator".string
nameThe name of this instance of the module.string
alphaHow much does the integrater leak?float0.9
betaHow much of the input is stored in the integrator?float0.1
minThe minimum value of the output (if set)float
maxThe maximum value of the output (if set)float

Module Connections

Inputs

NameDescription
INPUTThe input

Outputs

NameDescription
OUTPUTThe output

Author

Christian Balkenius
christian.balkenius@lucs.lu.se
Lund University Cognitive Science

Files

Integrator.h
Integrator.cc
Integrator.ikc

blog comments powered by Disqus