File indexing completed on 2026-06-02 08:48:23
0001
0002
0003
0004
0005
0006
0007
0008 #ifndef ACTIVATIONFUNCTION_H_
0009 #define ACTIVATIONFUNCTION_H_
0010
0011 #include <string>
0012
0013 namespace NumA {
0014
0015 class ActivationFunction {
0016
0017 public:
0018
0019 ActivationFunction();
0020 ActivationFunction(const std::string& name);
0021 virtual ~ActivationFunction();
0022 virtual ActivationFunction* clone() const;
0023
0024 virtual double evaluate(double input);
0025 virtual double evaluateFirstDerivative(double input);
0026 virtual double evaluateSecondDerivative(double input);
0027
0028 protected:
0029
0030 ActivationFunction(const ActivationFunction& other);
0031 };
0032
0033 }
0034
0035 #endif