// // Created by fluffymoo on 11.6.18. // #include "NeuronBinary.h" NeuronBinary::NeuronBinary(double threshold) { this->activation_function_parameters = new double[1]; this->activation_function_parameters[0] = threshold; } void NeuronBinary::activate() { if(this->potential >= this->activation_function_parameters[0]){ this->state = 1.0; } else{ this->state = 0.0; } }