51 const char*
name =
"",
const char* title =
"",
52 const char* extF =
"",
const char* extD =
"" );
ENeuronType GetType() const
Returns the neuron type.
TSynapse * GetPre(Int_t n) const
void ForceExternalValue(Double_t value)
Uses the branch type to force an external value.
TSynapse * GetPost(Int_t n) const
void SetNewEvent() const
Inform the neuron that inputs of the network have changed, so that the buffered values have to be rec...
Bool_t fNewDeDw
buffer containing the last neuron derivative
TObject * At(Int_t idx) const
void AddPre(TSynapse *)
Adds a synapse to the neuron as an input This method is used by the TSynapse while connecting two neu...
Double_t GetBranch() const
Returns the formula value.
Double_t RMS(Long64_t n, const T *a, const Double_t *w=0)
#define ClassDef(name, id)
Double_t fDerivative
do we need to compute fDerivative again ?
The TNamed class is the base class for all named ROOT classes.
Double_t GetValue() const
Computes the output using the appropriate function and all the weighted inputs, or uses the branch as...
TTreeFormula * UseBranch(TTree *, const char *)
Sets a formula that can be used to make the neuron an input.
TNeuron * GetInLayer(Int_t n) const
Bool_t fNewDeriv
buffer containing the last neuron output
void SetWeight(Double_t w)
Sets the neuron weight to w.
const Double_t * GetNormalisation() const
Double_t fDEDw
buffer containing the last derivative of the error
Double_t fValue
do we need to compute fValue again ?
Double_t fInput
do we need to compute fInput again ?
void AddInLayer(TNeuron *)
Tells a neuron which neurons form its layer (including itself).
void SetNormalisation(Double_t mean, Double_t RMS)
Sets the normalization variables.
TNeuron & operator=(const TNeuron &)
Double_t GetError() const
Computes the error for output neurons.
void SetDEDw(Double_t in)
Sets the derivative of the total error wrt the neuron weight.
TNeuron(ENeuronType type=kSigmoid, const char *name="", const char *title="", const char *extF="", const char *extD="")
Usual constructor.
Double_t Sigmoid(Double_t x) const
The Sigmoid.
Bool_t fNewValue
buffer containing the last neuron input
Double_t GetDeDw() const
Computes the derivative of the error wrt the neuron weight.
Double_t GetDerivative() const
computes the derivative for the appropriate function at the working point
Double_t GetTarget() const
Computes the normalized target pattern for output neurons.
Int_t fIndex
formula to be used for inputs and outputs
Double_t GetWeight() const
Bool_t fNewInput
index in the formula
Double_t fDeDw
do we need to compute fDeDw again ?
void AddPost(TSynapse *)
Adds a synapse to the neuron as an output This method is used by the TSynapse while connecting two ne...
A TTree object has a header with a name and a title.
A TTree is a list of TBranches.
Double_t GetInput() const
Returns neuron input.
Double_t DSigmoid(Double_t x) const
The Derivative of the Sigmoid.