The tanh function, defined by. More...
Static Public Member Functions | |
static double | Deriv (const double y) |
Computes the first derivative of the tanh function. More... | |
template < typename InputVecType , typename OutputVecType > | |
static void | Deriv (const InputVecType &y, OutputVecType &x) |
Computes the first derivatives of the tanh function. More... | |
static double | Fn (const double x) |
Computes the tanh function. More... | |
template < typename InputVecType , typename OutputVecType > | |
static void | Fn (const InputVecType &x, OutputVecType &y) |
Computes the tanh function. More... | |
static double | Inv (const double y) |
Computes the inverse of the tanh function. More... | |
template < typename InputVecType , typename OutputVecType > | |
static void | Inv (const InputVecType &y, OutputVecType &x) |
Computes the inverse of the tanh function. More... | |
|
inlinestatic |
Computes the first derivative of the tanh function.
y | Input activation. |
Definition at line 61 of file tanh_function.hpp.
|
inlinestatic |
Computes the first derivatives of the tanh function.
y | Input activations. |
x | The resulting derivatives. |
Definition at line 73 of file tanh_function.hpp.
|
inlinestatic |
Computes the tanh function.
x | Input data. |
Definition at line 38 of file tanh_function.hpp.
|
inlinestatic |
Computes the tanh function.
x | Input data. |
y | The resulting output activation. |
Definition at line 50 of file tanh_function.hpp.
|
inlinestatic |
Computes the inverse of the tanh function.
y | Input data. |
Definition at line 84 of file tanh_function.hpp.
|
inlinestatic |
Computes the inverse of the tanh function.
y | Input data. |
x | The resulting inverse of the input data. |
Definition at line 96 of file tanh_function.hpp.