#include <boost/math/constants/constants.hpp>
#include <boost/math/special_functions/sign.hpp>
#include <boost/utility/enable_if.hpp>
#include <limits>
#include <cmath>
#include <type_traits>
#include <shark/Core/Exception.h>
Go to the source code of this file.
|
template<class T > |
T | shark::maxExpInput () |
| Maximum allowed input value for exp. More...
|
|
template<class T > |
T | shark::minExpInput () |
| Minimum value for exp(x) allowed so that it is not 0. More...
|
|
template<class T > |
boost::enable_if< std::is_arithmetic< T >, T >::type | shark::sqr (const T &x) |
| Calculates x^2. More...
|
|
template<class T > |
T | shark::cube (const T &x) |
| Calculates x^3. More...
|
|
template<class T > |
boost::enable_if< std::is_arithmetic< T >, T >::type | shark::sigmoid (T x) |
| Logistic function/logistic function. More...
|
|
template<class T > |
T | shark::safeExp (T x) |
| Thresholded exp function, over- and underflow safe. More...
|
|
template<class T > |
T | shark::safeLog (T x) |
| Thresholded log function, over- and underflow safe. More...
|
|
template<class T > |
boost::enable_if< std::is_arithmetic< T >, T >::type | shark::softPlus (T x) |
| Numerically stable version of the function log(1+exp(x)). More...
|
|
double | shark::softPlus (double x) |
| Numerically stable version of the function log(1+exp(x)). calculated with float precision to save some time. More...
|
|
template<class T > |
T | shark::copySign (T x, T y) |
|
|
static const double | shark::SQRT_2_PI = boost::math::constants::root_two_pi<double>() |
| Constant for sqrt( 2 * pi ). More...
|
|