util Namespace Reference

Common utility functions. More...


Functions

template<typename T>
sqr (T a)
 The square of the value.
template<typename T>
median (std::vector< T > v)
 Median of the values in a vector.
template<typename T>
abs (const T &value)
 Absolute value.
template<typename T>
max (const T &a, const T &b)
 Maximum of two values.


Detailed Description

Common utility functions.

Function Documentation

template<typename T>
T util::median std::vector< T >  v  ) 
 

Median of the values in a vector.

Note:
For odd number (2n + 1) of values, the n'th value is returned.


Generated on Tue Apr 8 09:58:19 2008 for GoCam by  doxygen 1.4.6