GaussianFunction Class Reference

The gaussian function, defined by. More...

Static Public Member Functions

static double Deriv (const double y)
 Computes the first derivative of the gaussian function. More...

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

 
template
<
typename
eT
>
static double Fn (const eT x)
 Computes the gaussian function. More...

 
template
<
typename
InputVecType
,
typename
OutputVecType
>
static void Fn (const InputVecType &x, OutputVecType &y)
 Computes the gaussian function. More...

 

Detailed Description

The gaussian function, defined by.

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

Definition at line 28 of file gaussian_function.hpp.

Member Function Documentation

◆ Deriv() [1/2]

static double Deriv ( const double  y)
inlinestatic

Computes the first derivative of the gaussian function.

Parameters
yInput data.
Returns
f'(x)

Definition at line 61 of file gaussian_function.hpp.

◆ Deriv() [2/2]

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

Computes the first derivatives of the gaussian function.

Parameters
yInput activations.
xThe resulting derivatives.

Definition at line 73 of file gaussian_function.hpp.

◆ Fn() [1/2]

static double Fn ( const eT  x)
inlinestatic

Computes the gaussian function.

Parameters
xInput data.
Returns
f(x).

Definition at line 38 of file gaussian_function.hpp.

◆ Fn() [2/2]

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

Computes the gaussian function.

Parameters
xInput data.
yThe resulting output activation.

Definition at line 50 of file gaussian_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/gaussian_function.hpp