Skip to content
Snippets Groups Projects
NeuronBinary.h 1.01 KiB
Newer Older
/**
 * DESCRIPTION OF THE CLASS
 *
 * @author Martin Beseda
 * @author Martin Mrovec
 * @author Michal Kravčenko
 * @date 2017 - 2018
 */

#ifndef INC_4NEURO_NEURONBINARY_H
#define INC_4NEURO_NEURONBINARY_H

/**
 *  Binary neuron class - uses unit-step as the activation function
 */
        /**
         * Struct used to access private properties from
         * the serialization function
         */
        struct access;
        /**
         * Default constructor for the binary Neuron
         * @param[in] threshold Denotes when the neuron is activated
         * When neuron potential exceeds 'threshold' value it becomes excited
         */
        LIB4NEURO_API explicit NeuronBinary();
        /**
         * Performs the activation function and stores the result into the 'state' property
         */
        LIB4NEURO_API double activate(double x, double b) override;

#endif //INC_4NEURO_NEURONBINARY_H