56 Error(
"SetPre",
"this synapse is already assigned to a pre-neuron.");
69 Error(
"SetPost",
"this synapse is already assigned to a post-neuron.");
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
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.
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.