source/AI/visualization/visualization.cpp
////////////////////////////////////////////////////////////
/// \brief	Find the minimum and maximum value in a vector
/// of numbers
///
////////////////////////////////////////////////////////////
\brief Find the minimum and maximum value in a vector
of numbers
\ brief Find the minimum and maximum value in a vector of numbers
void findvecrange(float* data, const int size, double *min, double *max)
		{
			if (min != NULL) *min = 0xFFFFFF;
			if (max != NULL) *max = -0xFFFFFF;
			for (int i = 0; i < (int)size; i++) {
				if (min != NULL && data[i] < *min) *min = data[i];
				if (max != NULL && data[i] > *max) *max = data[i];
			}
		}
void findvecrange ( float * data , const int size , double * min , double * max ) { if ( min != NULL ) * min = 0xFFFFFF ; if ( max != NULL ) * max = -0xFFFFFF ; for ( int i = 0 ; i < ( int ) size ; i ++ ) { if ( min != NULL && data [ i ] < * min ) * min = data [ i ] ; if ( max != NULL && data [ i ] > * max ) * max = data [ i ] ; } }
\brief Find the minimum and maximum value in a vector
of numbers
\ brief Find the minimum and maximum value in a vector of numbers