SignalProcessing - Maple Programming Help

Home : Support : Online Help : Science and Engineering : Signal Processing : Computing Statistics : SignalProcessing/Sum

SignalProcessing

 Sum
 compute the sum of samples in an array

 Calling Sequence Sum(A)

Parameters

 A - Array of real numeric values; the signal

Description

 • The Sum(A) command returns the sum of the values in the array A.
 • Before the code performing the computation runs, A is converted to datatype float[8] if it does not have that datatype already. For this reason, it is most efficient if A has this datatype beforehand.

 • The SignalProcessing[Sum] command is thread-safe as of Maple 17.

Examples

 > $\mathrm{with}\left(\mathrm{SignalProcessing}\right):$
 > $a≔\mathrm{Array}\left(\left[1,2,3,4,5\right],'\mathrm{datatype}'='\mathrm{float}'\left[8\right]\right)$
 ${a}{≔}\left[\begin{array}{ccccc}{1.}& {2.}& {3.}& {4.}& {5.}\end{array}\right]$ (1)
 > $\mathrm{Sum}\left(a\right)$
 ${15.}$ (2)

Compatibility

 • The SignalProcessing[Sum] command was introduced in Maple 17.