#include "qwt_math.h"Go to the source code of this file.
Functions | |
| double | qwtGetMin (const double *array, int size) |
| Find the smallest value in an array. | |
| double | qwtGetMax (const double *array, int size) |
| Find the largest value in an array. | |
| double qwtGetMax | ( | const double * | array, |
| int | size | ||
| ) |
Find the largest value in an array.
| array | Pointer to an array |
| size | Array size |
Definition at line 37 of file qwt_math.cpp.
References qwtMax.
{
if (size <= 0)
return 0.0;
double rv = array[0];
for (int i = 1; i < size; i++)
rv = qwtMax(rv, array[i]);
return rv;
}
| double qwtGetMin | ( | const double * | array, |
| int | size | ||
| ) |
Find the smallest value in an array.
| array | Pointer to an array |
| size | Array size |
Definition at line 19 of file qwt_math.cpp.
References qwtMin.
{
if (size <= 0)
return 0.0;
double rv = array[0];
for (int i = 1; i < size; i++)
rv = qwtMin(rv, array[i]);
return rv;
}
1.7.2