mlpack
Static Public Member Functions | List of all members
mlpack::ann::SplineFunction Class Reference

The Spline function, defined by. More...

#include <spline_function.hpp>

Static Public Member Functions

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...
 

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

Member Function Documentation

◆ Deriv() [1/2]

static double mlpack::ann::SplineFunction::Deriv ( const double  y)
inlinestatic

Computes the first derivative of the Spline function.

Parameters
yInput data.
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
yInput data.
xThe resulting derivatives.

◆ Fn() [1/2]

static double mlpack::ann::SplineFunction::Fn ( const double  x)
inlinestatic

Computes the Spline function.

Parameters
xInput data.
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
xInput data.
yThe resulting output activation.

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