1
/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
3
* Copyright (C) 1997 Josef Wilgen
4
* Copyright (C) 2002 Uwe Rathmann
6
* This library is free software; you can redistribute it and/or
7
* modify it under the terms of the Qwt License, Version 1.0
8
*****************************************************************************/
15
\brief Find the smallest value in an array
16
\param array Pointer to an array
17
\param size Array size
19
double qwtGetMin(const double *array, int size)
25
for (int i = 1; i < size; i++)
26
rv = qwtMin(rv, array[i]);
33
\brief Find the largest value in an array
34
\param array Pointer to an array
35
\param size Array size
37
double qwtGetMax(const double *array, int size)
43
for (int i = 1; i < size; i++)
44
rv = qwtMax(rv, array[i]);