BIGSOM_fScalar or vector Addition/SoustractionBlock ScreenshotContentsDescriptionParametersDefault propertiesExampleInterfacing functionComputational functionSee alsoDescription
This block performs addition or soustraction on its scalar or vector inputs.The user can adjust
the gain for each input with the parameter Inputs ports signs/gain.
The behavior of the block is summarized in the following table :
Number of inputs
Operation
Remarks
One
y = k*u
k is the scalar value in Inputs ports signs/gain parameter.
The block has the behavior of a gain.
Two or more
y = k[1]*u1+k[2]*u2+...+k[n]*uN
k is the vector value write in Inputs ports signs/gain parameter.
To subtract an input ui, set a negative value in k[i].
ParametersInputs ports signs/gainSet sign and a gain for each inputs.Properties : Type 'vec' of size -1.Default propertiesalways active: no
direct-feedthrough: yes
zero-crossing: no
mode: no
regular inputs:- port 1 : size [-1,1] / type 1- port 2 : size [-1,1] / type 1regular outputs:- port 1 : size [-1,1] / type 1number/sizes of activation inputs: 0
number/sizes of activation outputs: 0
continuous-time state: no
discrete-time state: no
object discrete-time state: no
name of computational function:sumExampleInterfacing functionSCI/modules/scicos_blocks/macros/Linear/BIGSOM_f.sciComputational functionSCI/modules/scicos_blocks/src/c/sum.c (Type 2)See also
SUMMATION
SUM_f