The Poisson one function, defined by.
More...
#include <poisson1_function.hpp>
|
| static double | Fn (const double x) |
| | Computes the Poisson one function. More...
|
| |
| template<typename InputVecType , typename OutputVecType > |
| static void | Fn (const InputVecType &x, OutputVecType &y) |
| | Computes the Poisson one function. More...
|
| |
| static double | Deriv (const double y) |
| | Computes the first derivative of the Poisson one function. More...
|
| |
| template<typename InputVecType , typename OutputVecType > |
| static void | Deriv (const InputVecType &x, OutputVecType &y) |
| | Computes the first derivatives of the Poisson one function. More...
|
| |
The Poisson one function, defined by.
\begin{eqnarray*} f(x) = (x - 1) * e^-x \\ f'(x) = e^-x + (1 - x) * e^-x \\ \end{eqnarray*}
◆ Deriv() [1/2]
| static double mlpack::ann::Poisson1Function::Deriv |
( |
const double |
y | ) |
|
|
inlinestatic |
Computes the first derivative of the Poisson one function.
- Parameters
-
- Returns
- f'(x)
◆ Deriv() [2/2]
template<typename InputVecType , typename OutputVecType >
| static void mlpack::ann::Poisson1Function::Deriv |
( |
const InputVecType & |
x, |
|
|
OutputVecType & |
y |
|
) |
| |
|
inlinestatic |
Computes the first derivatives of the Poisson one function.
- Parameters
-
| y | Input data. |
| x | The resulting derivatives. |
◆ Fn() [1/2]
| static double mlpack::ann::Poisson1Function::Fn |
( |
const double |
x | ) |
|
|
inlinestatic |
Computes the Poisson one function.
- Parameters
-
- Returns
- f(x).
◆ Fn() [2/2]
template<typename InputVecType , typename OutputVecType >
| static void mlpack::ann::Poisson1Function::Fn |
( |
const InputVecType & |
x, |
|
|
OutputVecType & |
y |
|
) |
| |
|
inlinestatic |
Computes the Poisson one function.
- Parameters
-
| x | Input data. |
| y | The resulting output activation. |
The documentation for this class was generated from the following file: