mlpack 3.4.2
Static Public Member Functions | List of all members
InvQuadFunction Class Reference

The Inverse Quadratic function, defined by. More...

#include <inverse_quadratic_function.hpp>

Static Public Member Functions

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

Detailed Description

The Inverse Quadratic function, defined by.

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

Definition at line 28 of file inverse_quadratic_function.hpp.

Member Function Documentation

◆ Deriv() [1/2]

static double Deriv ( const double  y)
inlinestatic

Computes the first derivative of the Inverse Quadratic function.

Parameters
yInput data.
Returns
f'(x)

Definition at line 60 of file inverse_quadratic_function.hpp.

◆ Deriv() [2/2]

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

Computes the first derivatives of the Inverse Quadratic function.

Parameters
yInput data.
xThe resulting derivatives.

Definition at line 72 of file inverse_quadratic_function.hpp.

◆ Fn() [1/2]

static double Fn ( const double  x)
inlinestatic

Computes the Inverse Quadratic function.

Parameters
xInput data.
Returns
f(x).

Definition at line 37 of file inverse_quadratic_function.hpp.

◆ Fn() [2/2]

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

Computes the Inverse Quadratic function.

Parameters
xInput data.
yThe resulting output activation.

Definition at line 49 of file inverse_quadratic_function.hpp.


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