NeuronConstant.cpp 556 Bytes
Newer Older
1 2 3 4
/**
 * DESCRIPTION OF THE FILE
 *
 * @author Michal Kravčenko
Michal Kravcenko's avatar
Michal Kravcenko committed
5
 * @date 8.8.18 -
6 7
 */

8
#include "NeuronConstant.h"
Michal Kravcenko's avatar
Michal Kravcenko committed
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

NeuronConstant::NeuronConstant( double c ) {

    this->p = c;

}

double NeuronConstant::activate( double x ) {
    return  this->p;
}

double NeuronConstant::activation_function_eval_derivative_bias( double x ) {
    return 0.0;
}

double NeuronConstant::activation_function_eval_derivative( double x ) {
    return 0.0;
}

Neuron* NeuronConstant::get_derivative() {
    NeuronConstant* output = new NeuronConstant( );
    return output;
}