#include <algorithm>#include <vector>#include <math.h>Go to the source code of this file.
Namespaces | |
| namespace | util |
Functions | |
| template<typename T> | |
| T | util::sqr (T a) |
| The square of the value. | |
| template<typename T> | |
| T | util::median (std::vector< T > v) |
| Median of the values in a vector. | |
| template<typename T> | |
| T | util::abs (const T &value) |
| Absolute value. | |
| template<typename T> | |
| 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) |
1.4.6