SUM – [SUM]
Outputs the sum of all samples of input.
CATEGORY
Mathematical
DESCRIPTION
Outputs the sum of all samples of input.
RESULT VARIABLES AND PARAMETERS
Result | Sum of input |
Signal | Input |
SYNTAX
res=sum(input)
CHARACTERISTICS
Data type support
Double Floating point
EXAMPLE
For an input of value 1 acquired over a duration of 0.1 second at a sampling rate of 10000 Hz, the SUM function outputs the total sum of one thousand ones i.e. 1000.