ActivationFunction.h 660 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
 * ActivationFunction.h
 *
 *  Created on: Apr 23, 2016
 *      Author: Pawel Sznajder
 */

#ifndef ACTIVATIONFUNCTION_H_
#define ACTIVATIONFUNCTION_H_

#include <string>

namespace NumA {

class ActivationFunction {

public:

    ActivationFunction();
    ActivationFunction(const std::string& name);
    virtual ~ActivationFunction();
    virtual ActivationFunction* clone() const;

    virtual double evaluate(double input);
    virtual double evaluateFirstDerivative(double input);
    virtual double evaluateSecondDerivative(double input);

protected:

    ActivationFunction(const ActivationFunction& other);
};

}

#endif /* ACTIVATIONFUNCTION_H_ */