FunctionGenerator

Module that produces a function of time as its output. ramp: get an inverse ramp by setting offset=1 and amplitude=-1.

Example XML definition

Example

  <module
      class = "FunctionGenerator"
      name = "FunctionGenerator"
      type = "sin"
      frequency = "0.314"
      offset = "0.5"
      amplitude = "0.4"
      shift = "0.1"
  />

Parameters

NameDescriptionTypeDefault
classThe class name for the module; must be "FunctionGenerator".string
nameThe name of this instance of the module.string
typeFunction selectorlist
offsetA constant value added to the outputfloat0.0
amplitudeThe amplitide of the signalfloat1.0
frequencyFrequency of the signal.floatpi/20
shiftTemporal shift of the functionfloat0.0
dutyDuty cycle of the square wavefloat0.5
basetimeLength of a cycle in ticks for ticksqareint2
tickdutyDuty cycle of the ticksqare wave in ticksint1

Module Connections

Outputs

NameDescription
OUTPUTThe time dependent output signal

Author

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

Files

FunctionGenerator.h
FunctionGenerator.cc
FunctionGenerator.ikc