shark::FastSigmoidNeuron Struct Reference

Fast sigmoidal function, which does not need to compute an exponential function. More...

#include <shark/Models/Neurons.h>

Inheritance diagram for shark::FastSigmoidNeuron:

## Static Public Member Functions

template<class T >
static T function (T x)

template<class T >
static T functionDerivative (T y)

## Detailed Description

Fast sigmoidal function, which does not need to compute an exponential function.

It is defined as

$f(x)=\frac x {1+|x|}$

it's derivative can be computed as

$f'(x)= (1 - |f(x)|)^2$

Definition at line 168 of file Neurons.h.

## Member Function Documentation

template<class T >
 static T shark::FastSigmoidNeuron::function ( T x )
inlinestatic

Definition at line 170 of file Neurons.h.

template<class T >
 static T shark::FastSigmoidNeuron::functionDerivative ( T y )
inlinestatic

Definition at line 174 of file Neurons.h.

References shark::sqr().

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