SignalProcessing
Minimum
compute the minimum of an array of samples
Maximum
compute the maximum of an array of samples
MinimumMaximum
compute, simultaneously, the minimum and maximum values of an array of samples
Calling Sequence
Parameters
Options
Description
Thread Safety
Examples
Compatibility
Minimum(A)
Maximum(A)
MinimumMaximum(A)
A
-
Array of real numeric values; the signal
index : return the index of the maximum or minimum value in addition to the value itself
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.
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.
with⁡SignalProcessing:
a≔Array⁡3,1,2,4,datatype=float8
a≔3.1.2.4.
Minimum⁡a
1.
Maximum⁡a
4.
MinimumMaximum⁡a
1.,4.
Minimum⁡a,index
2,1.
Maximum⁡a,index
4,4.
MinimumMaximum⁡a,index
2,1.,4,4.
The SignalProcessing[Minimum], SignalProcessing[Maximum] and SignalProcessing[MinimumMaximum] commands were introduced in Maple 17.
For more information on Maple 17 changes, see Updates in Maple 17.
See Also
Array
max
min
with
Download Help Document