Differentiator
Module used to differentiate its input over time. The output is calculated as, output(t) = input(t) - input(t-1) The module retains the size of the input even if it is a matrix. The module can thus be used to differentiate images..
Example XML definition
Example
<module
class = "Differentiator"
name = "Differentiator"
/>
Parameters
| Name | Description | Type | Default |
|---|---|---|---|
| class | The class name for the module; must be "Differentiator". | string | |
| name | The name of this instance of the module. | string | |
| rectify | Should the output be rectified after subtraction? | bool | no |
| gain | The output is multiplied with this factor | float | 1.0 |
Module Connections
Inputs
| Name | Description |
|---|---|
| INPUT | The input |
Outputs
| Name | Description |
|---|---|
| OUTPUT | The differentiated output |
Author
Christian Balkenius
christian.balkenius@lucs.lu.se
Lund University Cognitive Science
Files
Differentiator.h
Differentiator.cc
Differentiator.ikc