The tanh function, defined by.
More...
|
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...
|
|
The tanh function, defined by.
Definition at line 29 of file tanh_function.hpp.
static double mlpack::ann::TanhFunction::deriv |
( |
const double |
y | ) |
|
|
inlinestatic |
Computes the first derivative of the tanh function.
- Parameters
-
- Returns
- f'(x)
Definition at line 61 of file tanh_function.hpp.
template<typename InputVecType , typename OutputVecType >
static void mlpack::ann::TanhFunction::deriv |
( |
const InputVecType & |
y, |
|
|
OutputVecType & |
x |
|
) |
| |
|
inlinestatic |
Computes the first derivatives of the tanh function.
- Parameters
-
y | Input data. |
x | The resulting derivatives. |
Definition at line 73 of file tanh_function.hpp.
static double mlpack::ann::TanhFunction::fn |
( |
const double |
x | ) |
|
|
inlinestatic |
Computes the tanh function.
- Parameters
-
- Returns
- f(x).
Definition at line 38 of file tanh_function.hpp.
template<typename InputVecType , typename OutputVecType >
static void mlpack::ann::TanhFunction::fn |
( |
const InputVecType & |
x, |
|
|
OutputVecType & |
y |
|
) |
| |
|
inlinestatic |
Computes the tanh function.
- Parameters
-
x | Input data. |
y | The resulting output activation. |
Definition at line 50 of file tanh_function.hpp.
static double mlpack::ann::TanhFunction::inv |
( |
const double |
y | ) |
|
|
inlinestatic |
Computes the inverse of the tanh function.
- Parameters
-
- Returns
- f^{-1}(x)
Definition at line 84 of file tanh_function.hpp.
template<typename InputVecType , typename OutputVecType >
static void mlpack::ann::TanhFunction::inv |
( |
const InputVecType & |
y, |
|
|
OutputVecType & |
x |
|
) |
| |
|
inlinestatic |
Computes the inverse of the tanh function.
- Parameters
-
y | Input data. |
x | The resulting inverse of the input data. |
Definition at line 96 of file tanh_function.hpp.
The documentation for this class was generated from the following file: