mlpack  3.4.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Static Public Member Functions | List of all members
ElliotFunction Class Reference

The Elliot function, defined by. More...

Static Public Member Functions

static double Deriv (const double y)
 Computes the first derivative of the Elliot function. More...
 
template<typename InputVecType , typename OutputVecType >
static void Deriv (const InputVecType &y, OutputVecType &x)
 Computes the first derivatives of the Elliot function. More...
 
static double Fn (const double x)
 Computes the Elliot function. More...
 
template<typename InputVecType , typename OutputVecType >
static void Fn (const InputVecType &x, OutputVecType &y)
 Computes the Elliot function. More...
 

Detailed Description

The Elliot function, defined by.

\begin{eqnarray*} f(x) &=& \frac{x}{1 + |x|} \\ f'(x) &=& \frac{1}{(1 + |x|)^2} \end{eqnarray*}

Definition at line 40 of file elliot_function.hpp.

Member Function Documentation

static double Deriv ( const double  y)
inlinestatic

Computes the first derivative of the Elliot function.

Parameters
yInput data.
Returns
f'(x).

Definition at line 72 of file elliot_function.hpp.

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

Computes the first derivatives of the Elliot function.

Parameters
yInput activations.
xThe resulting derivatives.

Definition at line 84 of file elliot_function.hpp.

static double Fn ( const double  x)
inlinestatic

Computes the Elliot function.

Parameters
xInput data.
Returns
f(x).

Definition at line 49 of file elliot_function.hpp.

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

Computes the Elliot function.

Parameters
xInput data.
yThe resulting output activation.

Definition at line 61 of file elliot_function.hpp.


The documentation for this class was generated from the following file: