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
| Name | Description | Type | Default |
|---|---|---|---|
| class | The class name for the module; must be "FunctionGenerator". | string | |
| name | The name of this instance of the module. | string | |
| type | Function selector | list | |
| offset | A constant value added to the output | float | 0.0 |
| amplitude | The amplitide of the signal | float | 1.0 |
| frequency | Frequency of the signal. | float | pi/20 |
| shift | Temporal shift of the function | float | 0.0 |
| duty | Duty cycle of the square wave | float | 0.5 |
| basetime | Length of a cycle in ticks for ticksqare | int | 2 |
| tickduty | Duty cycle of the ticksqare wave in ticks | int | 1 |
Module Connections
Outputs
| Name | Description |
|---|---|
| OUTPUT | The time dependent output signal |
Author
Christian Balkenius
christian.balkenius@lucs.lu.se
Lund University Cognitive Science
Files
FunctionGenerator.h
FunctionGenerator.cc
FunctionGenerator.ikc