compute the minimum of an array of samples - Maple Help

Online Help

All Products    Maple    MapleSim


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

SignalProcessing[Minimum] - compute the minimum of an array of samples

SignalProcessing[Maximum] - compute the maximum of an array of samples

SignalProcessing[MinimumMaximum] - compute, simultaneously, the minimum and maximum values of an array of samples

Calling Sequence

Minimum(A)

Maximum(A)

MinimumMaximum(A)

Parameters

A

-

Array of real numeric values; the signal

Description

• 

The Minimum(A) command returns the minimum value of the array A.

• 

The Maximum(A) command returns the maximum value of the array A.

• 

The MinimumMaximum(A) command computes, simultaneously, the minimum and maximum values of the array A, and returns an expression sequence consisting of these two values, respectively.

• 

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.

• 

If the index option is provided with the Minimum or Maximum command, then an expression sequence consisting of the index of the maximum or minimum value and the value itself is returned. If it is provided with the MinimumMaximum command, then an expression sequence consisting of these four items is returned: index of the minimum value, the minimum value, index of the maximum value, maximum value.

Thread Safety

• 

The SignalProcessing[Minimum], SignalProcessing[Maximum] and SignalProcessing[MinimumMaximum] commands are thread-safe as of Maple 17.

• 

For more information on thread safety, see index/threadsafe.

Examples

withSignalProcessing:

a:=Array3,1,2,4,'datatype'='float'8

a:=3.1.2.4.

(1)

Minimuma

1.

(2)

Maximuma

4.

(3)

MinimumMaximuma

1.,4.

(4)

Minimuma,'index'

2,1.

(5)

Maximuma,'index'

4,4.

(6)

MinimumMaximuma,'index'

2,1.,4,4.

(7)

See Also

Array, max, min, 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