Threshold

Module used to apply a threshold to each element of its input. When the input is below the threshold, the output is 0. When the input is above the threshold, the output is 1 in binary mode, and input - threshold in linear mode.

Example XML definition

Example

  <module
      class = "Threshold"
      name = "Threshold"
      type = "binary"
      threshold = "0.5"
  />

Parameters

NameDescriptionTypeDefault
classThe class name for the module; must be "Threshold".string
nameThe name of this instance of the module.string
thresholdThe threshold valuefloat0.0
typeThe threshold valuelistbinary

Module Connections

Inputs

NameDescription
INPUTThe input

Outputs

NameDescription
OUTPUTThe output.

Author

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

Files

Threshold.h
Threshold.cc
Threshold.ikc