C_AnalyseExtrema

C_AnalyseExtrema locates the minimum and maximum values in an array of floating point values. Values of OrcinaNullReal() are ignored; values of OrcinaDefaultReal() and OrcinaUndefinedReal() result in an error.

void C_AnalyseExtrema(

double *lpValues,

int Count,

double *lpMaximum,

double *lpMinimum,

int *lpIndexOfMaximum,

int *lpIndexOfMinimum,

int *lpStatus

);

Parameters

lpValues (IN)

Points to the beginning of the array of values.

Count (IN)

The number of values in the array. Count must be greater than zero.

lpMaximum (OUT)

Points to a variable in which the maximum value in the array will be returned.

lpMinimum (OUT)

Points to a variable in which the minimum value in the array will be returned.

lpIndexOfMaximum (OUT)

Points to a variable in which the index of maximum value in the array will be returned. This index is zero-based so a value of zero refers to the first value in the array.

lpIndexOfMinimum (OUT)

Points to a variable in which the index of minimum value in the array will be returned. This index is zero-based so a value of zero refers to the first value in the array.

lpStatus (OUT)

Points to a variable in which the status result for the function call will be returned.