SignalProcessing - Maple Help

Online Help

All Products    Maple    MapleSim


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

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

Calling Sequence

Mean(A)

StandardDeviation(B)

MeanStandardDeviation(B)

Parameters

A

-

Array of real or complex numeric values; the signal

B

-

Array of real numeric values; the signal

Description

• 

The Mean(A) command returns the mean of the array A, defined as the value of the expression

k=1NAkN

  

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=1NBkμ2N1

  

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.

Thread Safety

• 

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.

Examples

withSignalProcessing:

aArray1,2,3,4,5,'datatype'='float'8:

Meana

3.

(1)

StandardDeviationa

1.58113883008418976

(2)

MeanStandardDeviationa

3.,1.58113883008418976

(3)

Compatibility

• 

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

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam