util.hh File Reference

#include <algorithm>
#include <vector>
#include <math.h>

Go to the source code of this file.

Namespaces

namespace  util

Functions

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


Generated on Mon Jan 8 15:51:03 2007 for bit by  doxygen 1.4.6