SuperNN  1.0.0
Static Public Member Functions | List of all members
SuperNN::ActFunc Struct Reference

Activation function dispatcher. More...

Static Public Member Functions

static double activation (const Neuron &neuron)
 Calls the actual activation function. More...
 
static double derivative (const Neuron &neuron)
 Calls the actual derivative of the activation function, used to calculate the error gradient. More...
 

Detailed Description

Activation function dispatcher.

Definition at line 179 of file activation.hpp.

Member Function Documentation

static double SuperNN::ActFunc::activation ( const Neuron neuron)
inlinestatic

Calls the actual activation function.

Parameters
neuronNeuron to calculate the output of the activation function
Returns
Activation output

Definition at line 187 of file activation.hpp.

static double SuperNN::ActFunc::derivative ( const Neuron neuron)
inlinestatic

Calls the actual derivative of the activation function, used to calculate the error gradient.

Parameters
neuronNeuron to calculate the derivative of the activation function
Returns
Activation derivative

Definition at line 227 of file activation.hpp.