Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-06-02 08:48:23

0001 /*
0002  * ActivationFunctionLinear.h
0003  *
0004  *  Created on: Apr 23, 2016
0005  *      Author: Pawel Sznajder
0006  */
0007 
0008 #ifndef ACTIVATIONFUNCTIONLINEAR_H_
0009 #define ACTIVATIONFUNCTIONLINEAR_H_
0010 
0011 #include "ActivationFunction.h"
0012 
0013 namespace NumA {
0014 
0015 class ActivationFunctionLinear: public ActivationFunction {
0016 
0017 public:
0018 
0019     static const unsigned int classId;
0020 
0021     ActivationFunctionLinear();
0022     virtual ~ActivationFunctionLinear();
0023     virtual ActivationFunctionLinear* clone() const;
0024 
0025     virtual double evaluate(double input);
0026     virtual double evaluateFirstDerivative(double input);
0027     virtual double evaluateSecondDerivative(double input);
0028 
0029 protected:
0030 
0031     ActivationFunctionLinear(const ActivationFunctionLinear& other);
0032 };
0033 
0034 }
0035 
0036 #endif /* ACTIVATIONFUNCTIONLINEAR_H_ */