Poisson1Function Class Reference

The Poisson one function, defined by. More...

Static Public Member Functions

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...

 
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...

 

Detailed Description

The Poisson one function, defined by.

\begin{eqnarray*} f(x) = (x - 1) * e^-x \\ f'(x) = e^-x + (1 - x) * e^-x \\ \end{eqnarray*}

Definition at line 28 of file poisson1_function.hpp.

Member Function Documentation

◆ Deriv() [1/2]

static double Deriv ( const double  y)
inlinestatic

Computes the first derivative of the Poisson one function.

Parameters
yInput data.
Returns
f'(x)

Definition at line 60 of file poisson1_function.hpp.

◆ Deriv() [2/2]

static void Deriv ( const InputVecType &  x,
OutputVecType &  y 
)
inlinestatic

Computes the first derivatives of the Poisson one function.

Parameters
yInput data.
xThe resulting derivatives.

Definition at line 72 of file poisson1_function.hpp.

◆ Fn() [1/2]

static double Fn ( const double  x)
inlinestatic

Computes the Poisson one function.

Parameters
xInput data.
Returns
f(x).

Definition at line 37 of file poisson1_function.hpp.

◆ Fn() [2/2]

static void Fn ( const InputVecType &  x,
OutputVecType &  y 
)
inlinestatic

Computes the Poisson one function.

Parameters
xInput data.
yThe resulting output activation.

Definition at line 49 of file poisson1_function.hpp.


The documentation for this class was generated from the following file:
  • /home/jenkins-mlpack/mlpack.org/_src/mlpack-git/src/mlpack/methods/ann/activation_functions/poisson1_function.hpp