GlobalMinimum (FPScript)
Searches for the global minimum in a data set.
Syntax
GlobalMinimum(DataSet [ , Operation = EVENT_DEFAULT ])
The syntax of the GlobalMinimum function consists of the following parts:
Part |
Description |
||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
DataSet |
The data set to be searched. Permitted data structures are data series, data matrix, signal und signal series. All numeric data types are permitted. For complex data types the absolute value is formed. If the argument is a list, then the function is executed for each element of the list and the result is also a list. |
||||||||||||
Operation |
Specifies the way the function operates. If you omit the argument, the function for data series and signals provides the index of the found minimum as a scalar value. For data matrices and signal series, EVENT_SETVOID is used in this case. The argument Operation can have the following values:
If the argument is a list, then the first element in the list is taken. If this is also a list, then the process is repeated. If this argument is omitted, it will be set to the default value EVENT_DEFAULT. |
Remarks
The global minimum is the lowest value in the data set. The GlobalMinimum function returns the location of the global minimum. Use the Minimum function with the CALC_GLOBAL option to get the value of the global minimum. If several such values exist, only the first is recognized as a global minimum. Use the GlobalExtrema function if you want to find all occurrences in this case.
Available in
FlexPro Basic, Professional, Developer Suite
Examples
GlobalMinimum({6,4,3,7,4,5}) |
Results in 2L. The result is the index of the lowest value as a scalar value. |
GlobalMinimum({6,4,3,7,4,5}, EVENT_INDEX) |
Results in {2L}. The result is the index of the lowest value as a data series. |