Newer
Older

Michal Kravcenko
committed
/**
* 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
#include "Neuron.h"
Martin Beseda
committed
namespace lib4neuro {
/**
* Binary neuron class - uses unit-step as the activation function
*/
Martin Beseda
committed
class NeuronBinary : public Neuron {
public:
Martin Beseda
committed
/**
* Struct used to access private properties from
* the serialization function
*/
struct access;
Martin Beseda
committed
/**
* 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();
Martin Beseda
committed
Martin Beseda
committed
/**
* Performs the activation function and stores the result into the 'state' property
*/
LIB4NEURO_API double activate(double x, double b) override;
Martin Beseda
committed
};
Martin Beseda
committed
}
#endif //INC_4NEURO_NEURONBINARY_H