BipolarActivationFunction.h

Go to the documentation of this file.
00001 #ifndef CBIPOLARACTIVATIONFUNCTION_H
00002 #define CBIPOLARACTIVATIONFUNCTION_H
00003 
00004 #include "GeneralActivationFunction.h"
00005 
00006 namespace gplib
00007   {
00008     /** \addtogroup neuralnet Neural Network filtering */
00009     /* @{ */
00010     //! The biploar activation function is a common function in NN applications
00011     /*! The output is \f$ \tanh (0.5 x) \f$ and can assume values between \f$ -1 \ldots 1 \f$.
00012      */
00013     class BipolarActivationFunction: public GeneralActivationFunction
00014       {
00015     public:
00016       virtual double CalcOutput(const double input);
00017       virtual double CalcDeriv(const double input);
00018       BipolarActivationFunction();
00019       virtual ~BipolarActivationFunction();
00020       };
00021   /* @} */
00022   }
00023 #endif // CBIPOLARACTIVATIONFUNCTION_H

Generated on Tue May 4 16:52:14 2010 for GPLIB++ by  doxygen 1.5.8