ActivationFunctionLogistic.h 772 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
36
/*
 * ActivationFunctionLogistic.h
 *
 *  Created on: Apr 23, 2016
 *      Author: Pawel Sznajder
 */

#ifndef ACTIVATIONFUNCTIONLOGISTIC_H_
#define ACTIVATIONFUNCTIONLOGISTIC_H_

#include "ActivationFunction.h"

namespace NumA {

class ActivationFunctionLogistic: public ActivationFunction {

public:

    static const unsigned int classId;

    ActivationFunctionLogistic();
    virtual ~ActivationFunctionLogistic();
    virtual ActivationFunctionLogistic* clone() const;

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

protected:

    ActivationFunctionLogistic(const ActivationFunctionLogistic& other);
};

}

#endif /* ACTIVATIONFUNCTIONLOGISTIC_H_ */