GPLIB++
GeneralActivationFunction.h
Go to the documentation of this file.
1 #ifndef CGENERALACTIVATIONFUNCTION_H
2 #define CGENERALACTIVATIONFUNCTION_H
3 
4 namespace gplib
5  {
6  /** \addtogroup neuralnet Neural Network filtering */
7  /* @{ */
8 
9  //! The base class for all activation functions in neural network
10 
11  /*! The activation function in a neural network node determines the type of
12  * non-linearity between input and output. We have to implement the activation function
13  * and its derivative.
14  */
16  {
17  public:
18  //! The function that maps between the weighted sum that's the input of the neuron and the output
19  virtual double CalcOutput(const double input) = 0;
20  //! The derivative of the function defined in CalcOutput
21  virtual double CalcDeriv(const double input) = 0;
24  };
25  /* @} */
26  }
27 #endif // CGENERALACTIVATIONFUNCTION_H
virtual double CalcOutput(const double input)=0
The function that maps between the weighted sum that's the input of the neuron and the output...
The base class for all activation functions in neural network.
virtual double CalcDeriv(const double input)=0
The derivative of the function defined in CalcOutput.