Skip to content
Snippets Groups Projects
NeuronConstant.cpp 832 B
Newer Older
/**
 * DESCRIPTION OF THE FILE
 *
 * @author Michal Kravčenko
Michal Kravcenko's avatar
Michal Kravcenko committed
 * @date 8.8.18 -
#include <boost/serialization/export.hpp>

#include "NeuronConstantSerialization.h"


BOOST_CLASS_EXPORT_IMPLEMENT(lib4neuro::NeuronConstant);
    NeuronConstant::NeuronConstant(double c) {
        this->p = c;
    }
    double NeuronConstant::activate(double x, double b) {
        this->activation_val = this->p;
        return this->activation_val;
    double NeuronConstant::activation_function_eval_derivative_bias(double x, double b) {
        return 0.0;
    }
    double NeuronConstant::activation_function_eval_derivative(double x, double b) {
        return 0.0;
    }
    Neuron *NeuronConstant::get_derivative() {
        NeuronConstant *output = new NeuronConstant();
        return output;
    }

}