|
latest version v1.9 - last update 10 Apr 2010 |
|
Definition of some usually used global functions like min, max, round, etc. More...
#include "ltiObject.h"#include "ltiTypes.h"#include "ltiSinCos.h"#include <cmath>#include <limits>#include <algorithm>#include "ltiMath_template.h"

Go to the source code of this file.
Namespaces | |
| namespace | lti |
Functions | |
| template<class T > | |
| bool | lti::closeTo (const T &a, const T &b, const T epsilon=std::numeric_limits< T >::epsilon()) |
| template<class T > | |
| bool | lti::closeToZero (const T &a, const T epsilon=std::numeric_limits< T >::epsilon()) |
| template<class T > | |
| T | lti::round (T x) |
| template<class T > | |
| int | lti::iround (T x) |
| template<class T > | |
| long | lti::lround (T x) |
| template<class T , class F > | |
| void | lti::condRoundCastTo (const F from, T &to) |
| template<class T > | |
| void | lti::exchange (T &a, T &b) |
| template<class T > | |
| T | lti::min (const T x, const T y) |
| template<class T > | |
| T | lti::max (const T x, const T y) |
| template<class T > | |
| T | lti::min (const T x, const T y, const T z) |
| template<class T > | |
| T | lti::max (const T x, const T y, const T z) |
| template<class T > | |
| void | lti::minmax (const T x, const T y, T &theMin, T &theMax) |
| template<class T > | |
| void | lti::minmax (T &theMin, T &theMax) |
| template<class T > | |
| T | lti::lnGamma (const T &x) |
| double | lti::factorial (const int x) |
| double | lti::lnFactorial (const int x) |
| double | lti::binomial (const int n, const int k) |
| double | lti::degToRad (const double °) |
| float | lti::degToRad (const float °) |
| double | lti::degToRad (const int °) |
| double | lti::radToDeg (const double &rad) |
| float | lti::radToDeg (const float &rad) |
| byte | lti::abs (byte x) |
| int | lti::abs (int x) |
| float | lti::abs (float x) |
| double | lti::abs (const double &x) |
| template<class T > | |
| T | lti::absdiff (const T &x, const T &y) |
| double | lti::reciprocal (const double &x) |
| float | lti::reciprocal (const float &x) |
| double | lti::oneMinus (const double &x) |
| float | lti::oneMinus (const float &x) |
| int | lti::oneMinus (const int &x) |
| template<class T > | |
| T | lti::rectify (const T &x) |
| template<class T > | |
| T | lti::sqr (const T &x) |
| int | lti::sqrt (int x) |
| unsigned int | lti::sqrt (unsigned int x) |
| float | lti::sqrt (float x) |
| double | lti::sqrt (const double &x) |
| template<class T > | |
| T | lti::sqrtrect (const T x) |
| template<class T > | |
| void | lti::sincos (T angle, T &sval, T &cval) |
| float | lti::sigmoid (const float x) |
| double | lti::sigmoid (const double &x) |
| double | lti::sigmoid (const int x) |
| template<class T > | |
| T | lti::signum (T x) |
| template<class T > | |
| T | lti::signum0 (T x) |
| template<class T > | |
| bool | lti::even (const T x) |
| template<class T > | |
| bool | lti::odd (const T x) |
| template<class T > | |
| T | lti::betai (const T &a, const T &b, const T &x) |
| double | lti::betacf (const double &a, const double &b, const double &x) |
Variables | |
| const double | lti::Pi = 3.1415926535897932 |
| const double | lti::NaN = log(-1.0) |
| const double | lti::Inf = tan(Pi/2.0) |
Definition of some usually used global functions like min, max, round, etc.