SignalProcessing
Mean
compute the mean of an array of samples
StandardDeviation
compute the standard deviation of an array of samples
MeanStandardDeviation
compute, simultaneously, the mean and standard deviation of an array of samples
Calling Sequence
Parameters
Description
Thread Safety
Examples
Compatibility
Mean(A)
StandardDeviation(B)
MeanStandardDeviation(B)
A
-
Array of real or complex numeric values; the signal
B
Array of real numeric values; the signal
The Mean(A) command returns the mean of the array A, defined as the value of the expression
∑k=1N⁡AkN
where N is the number of elements of A.
The StandardDeviation(B) command returns the standard deviation of the Array B, defined as the value of the expression
∑k=1N⁡Bk−μ2N−1
where N is the number of elements of B, and μ is the mean of B.
The MeanStandardDeviation(B) command computes the mean and standard deviation of B simultaneously, and returns an expression sequence consisting of these values, respectively.
For all of these commands, Maple may convert the input signal. Before the code performing Mean runs, Maple converts A to a hardware datatype, first attempting float[8] and subsequently complex[8], unless it already has one of these datatypes. Similarly, before the code performing StandardDeviation or MeanStandardDeviation runs, B is converted to datatype float[8] if it does not have that datatype already. For this reason, it is most efficient if the input Array has an appropriate datatype already.
The SignalProcessing[Mean], SignalProcessing[StandardDeviation] and SignalProcessing[MeanStandardDeviation] commands are thread-safe as of Maple 17.
For more information on thread safety, see index/threadsafe.
with⁡SignalProcessing:
a≔Array⁡1,2,3,4,5,datatype=float8:
Mean⁡a
3.
StandardDeviation⁡a
1.58113883008418976
MeanStandardDeviation⁡a
3.,1.58113883008418976
The SignalProcessing[Mean], SignalProcessing[StandardDeviation] and SignalProcessing[MeanStandardDeviation] commands were introduced in Maple 17.
For more information on Maple 17 changes, see Updates in Maple 17.
See Also
Array
SignalProcessing[Sum]
with
Download Help Document
What kind of issue would you like to report? (Optional)