SplineFunction Class Reference

The Spline function, defined by. More...

Static Public Member Functions

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

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

 
static double Fn (const double x)
 Computes the Spline function. More...

 
template
static void Fn (const InputVecType &x, OutputVecType &y)
 Computes the Spline function. More...

 

Detailed Description

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*}

Definition at line 28 of file spline_function.hpp.

Member Function Documentation

◆ Deriv() [1/2]

static double Deriv ( const double  y)
inlinestatic

Computes the first derivative of the Spline function.

Parameters
yInput data.
Returns
f'(x)

Definition at line 60 of file spline_function.hpp.

◆ Deriv() [2/2]

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

Computes the first derivatives of the Spline function.

Parameters
yInput data.
xThe resulting derivatives.

Definition at line 72 of file spline_function.hpp.

◆ Fn() [1/2]

static double Fn ( const double  x)
inlinestatic

Computes the Spline function.

Parameters
xInput data.
Returns
f(x).

Definition at line 37 of file spline_function.hpp.

◆ Fn() [2/2]

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

Computes the Spline function.

Parameters
xInput data.
yThe resulting output activation.

Definition at line 49 of file spline_function.hpp.


The documentation for this class was generated from the following file:
  • /home/jenkins-mlpack/mlpack.org/_src/mlpack-3.4.2/src/mlpack/methods/ann/activation_functions/spline_function.hpp