mlpack 3.4.2
Static Public Member Functions | List of all members
LiSHTFunction Class Reference

The LiSHT function, defined by. More...

#include <lisht_function.hpp>

Static Public Member Functions

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

Detailed Description

The LiSHT function, defined by.

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

Definition at line 42 of file lisht_function.hpp.

Member Function Documentation

◆ Deriv() [1/2]

static double Deriv ( const double  y)
inlinestatic

Computes the first derivative of the LiSHT function.

Parameters
yInput data.
Returns
f'(x)

Definition at line 74 of file lisht_function.hpp.

◆ Deriv() [2/2]

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

Computes the first derivatives of the LiSHT function.

Parameters
yInput data.
xThe resulting derivatives.

Definition at line 86 of file lisht_function.hpp.

◆ Fn() [1/2]

static double Fn ( const double  x)
inlinestatic

Computes the LiSHT function.

Parameters
xInput data.
Returns
f(x).

Definition at line 51 of file lisht_function.hpp.

◆ Fn() [2/2]

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

Computes the LiSHT function.

Parameters
xInput data.
yThe resulting output activation.

Definition at line 63 of file lisht_function.hpp.


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