SignalProcessing
MinimumEvery
compute the pairwise minimum of two arrays of samples
MaximumEvery
compute the pairwise maximum of two arrays of samples
Calling Sequence
Parameters
Options
Description
Thread Safety
Examples
Compatibility
MinimumEvery(A, B)
MaximumEvery(A, B)
A, B
-
Arrays of real numeric values; the signals
container : Array, predefined Array for holding result
The MinimumEvery(A, B) command computes the minimum of each pair A[k] and B[k], storing the minimum value in the corresponding k-th element of an Array with datatype float[8], which is then returned.
The MaximumEvery(A, B) command computes the maximum of each pair A[k] and B[k], storing the maximum value in the corresponding k-th element of an Array with datatype float[8], which is then returned.
The Vectors A and B must have the same number of elements.
Before the code performing the computation runs, A and B are converted to datatype float[8] if they do not have that datatype already. For this reason, it is most efficient if A and B have this datatype beforehand.
If the container=C option is provided, then the results are put into C and C is returned. With this option, no additional memory is allocated to store the result. The container must be an Array of size N having datatype float[8], where N is the size of A and B.
The SignalProcessing[MinimumEvery] and SignalProcessing[MaximumEvery] 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
a≔1.2.3.4.5.
b≔Array⁡5,4,3,2,1,datatype=float8
b≔5.4.3.2.1.
MinimumEvery⁡a,b
1.2.3.2.1.
MaximumEvery⁡a,b
5.4.3.4.5.
C≔Array⁡1..5,datatype=float8:
MaximumEvery⁡a,b,container=C
C
The SignalProcessing[MinimumEvery] and SignalProcessing[MaximumEvery] 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