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