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