Constant

Module that outputs a constant array or matrix each time step. It can be one or two dimensional depending on whether outputsize_x and outputsize_y or only outputsize is used in the ikc definition. If outputsize is not set, the size of the output is calculated from the data where each row is terminated with a ';'

Example XML definition

A simple example

  <module
      class = "Constant"
      name = "Constant"
      outputsize = "4"
      data = "1 2 3 4"
  />

Matrix example; WARNING: this does not currently work. ';' are necessary to ,ark end of row.

  <module
      class = "Constant"
      name = "MatrixConstant"
      outputsize_x = "3"
      outputsize_y = "3"
      data = "1 2 3 2 3 4 3 4 5"
  />

Autosize example

  <module
      class = "Constant"
      name = "Matrix3x4"
      data = "1 2 3; 2 3 4; 3 4 5; 4 5 6"
  />

Module Connections

Outputs

NameDescription
OUTPUTThe output

Author

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

Files

Constant.h
Constant.cc
Constant.ikc

blog comments powered by Disqus