MaximumEvery - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

SignalProcessing

 MinimumEvery
 compute the pairwise minimum of two arrays of samples
 MaximumEvery
 compute the pairwise maximum of two arrays of samples

 Calling Sequence MinimumEvery(A, B) MaximumEvery(A, B)

Parameters

 A, B - Arrays of real numeric values; the signals

Options

 • container : Array, predefined Array for holding result

Description

 • 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.

Examples

 > $\mathrm{with}\left(\mathrm{SignalProcessing}\right):$
 > $a≔\mathrm{Array}\left(\left[1,2,3,4,5\right],'\mathrm{datatype}'={'\mathrm{float}'}_{8}\right)$
 ${a}{≔}\left[\begin{array}{ccccc}{1.}& {2.}& {3.}& {4.}& {5.}\end{array}\right]$ (1)
 > $b≔\mathrm{Array}\left(\left[5,4,3,2,1\right],'\mathrm{datatype}'={'\mathrm{float}'}_{8}\right)$
 ${b}{≔}\left[\begin{array}{ccccc}{5.}& {4.}& {3.}& {2.}& {1.}\end{array}\right]$ (2)
 > $\mathrm{MinimumEvery}\left(a,b\right)$
 $\left[\begin{array}{ccccc}{1.}& {2.}& {3.}& {2.}& {1.}\end{array}\right]$ (3)
 > $\mathrm{MaximumEvery}\left(a,b\right)$
 $\left[\begin{array}{ccccc}{5.}& {4.}& {3.}& {4.}& {5.}\end{array}\right]$ (4)
 > $C≔\mathrm{Array}\left(1..5,'\mathrm{datatype}'={'\mathrm{float}'}_{8}\right):$
 > $\mathrm{MaximumEvery}\left(a,b,'\mathrm{container}'=C\right)$
 $\left[\begin{array}{ccccc}{5.}& {4.}& {3.}& {4.}& {5.}\end{array}\right]$ (5)
 > $C$
 $\left[\begin{array}{ccccc}{5.}& {4.}& {3.}& {4.}& {5.}\end{array}\right]$ (6)

Compatibility

 • The SignalProcessing[MinimumEvery] and SignalProcessing[MaximumEvery] commands were introduced in Maple 17.
 • For more information on Maple 17 changes, see Updates in Maple 17.