57 Error(
"SetPre",
"this synapse is already assigned to a pre-neuron.");
70 Error(
"SetPost",
"this synapse is already assigned to a post-neuron.");
This class describes an elementary neuron, which is the basic element for a Neural Network.
Double_t GetValue() const
Computes the output using the appropriate function and all the weighted inputs, or uses the branch as...
Double_t GetDeDw() const
Computes the derivative of the error wrt the neuron weight.
void AddPost(TSynapse *)
Adds a synapse to the neuron as an output This method is used by the TSynapse while connecting two ne...
void AddPre(TSynapse *)
Adds a synapse to the neuron as an input This method is used by the TSynapse while connecting two neu...
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
This is a simple weighted bidirectional connection between two neurons.
TNeuron * fpre
the neuron before the synapse
void SetPre(TNeuron *pre)
Sets the pre-neuron.
Double_t GetDeDw() const
Computes the derivative of the error wrt the synapse weight.
TNeuron * fpost
the neuron after the synapse
void SetPost(TNeuron *post)
Sets the post-neuron.
Double_t fDEDw
! the derivative of the total error wrt the synapse weight
Double_t fweight
the weight of the synapse
void SetWeight(Double_t w)
Sets the weight of the synapse.
Double_t GetValue() const
Returns the value: weighted input.
void SetDEDw(Double_t in)
Sets the derivative of the total error wrt the synapse weight.
TSynapse()
Default constructor.