Description: Array minimum. This function returns the minimum value in a sub-range of a numeric array.
Returns: Numeric
Usage: Script or Steady State
Format: AMin(ArrayElem, N)
Parameters: ArrayElem { numeric } { required } { no default: }
A numeric array element. The subscript(s) for the array may be any numeric expression, specifying the starting point for the array minimum search.
N { numeric } { required } { no default: }
Any numeric expression giving the number of array elements to use starting at the element given by the first parameter. If N extends past the upper bound of the lowest array dimension, this computation will "wrap-around" and resume at element 0 until N elements have been processed.
Comments: AMin ignores invalid array entries. The function only returns invalid if the array subscript is invalid, N is invalid, or if all of the array entries in the specified range are invalid. Only the lowest dimension on an array is searched.
Example:
low = AMin(trendData[0] { Start at element 0 },
100 { Search through 100 elements });
The example above sets low to the lowest value of trendData elements 0 to 99. Since this function ignores invalid array elements, low will be some valid value unless all elements 0 to 99 are invalid.
See Also: