Fast sigmoidal function, which does not need to compute an exponential function. More...
#include <shark/Models/Neurons.h>
Public Member Functions | |
template<class T > | |
T | function (T x) const |
template<class T > | |
T | functionDerivative (T y) const |
Fast sigmoidal function, which does not need to compute an exponential function.
It is defined as
\[ f(x)=\frac x {1+|x|}\]
it's derivative can be computed as
\[ f'(x)= (1 - |f(x)|)^2 \]
|
inline |
|
inline |
Definition at line 180 of file Neurons.h.
References shark::sqr().