18 #ifndef ROOT_TObjArray
55 const char*
name =
"",
const char* title =
"",
56 const char* extF =
"",
const char* extD =
"" );
void ForceExternalValue(Double_t value)
Uses the branch type to force an external value.
TNeuron * GetInLayer(Int_t n) const
Double_t GetError() const
Computes the error for output neurons.
Bool_t fNewDeDw
buffer containing the last neuron derivative
Double_t DSigmoid(Double_t x) const
The Derivative of the Sigmoid.
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 GetTarget() const
Computes the normalized target pattern for output neurons.
Double_t RMS(Long64_t n, const T *a, const Double_t *w=0)
TSynapse * GetPre(Int_t n) const
#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.
const Double_t * GetNormalisation() const
TTreeFormula * UseBranch(TTree *, const char *)
Sets a formula that can be used to make the neuron an input.
Double_t GetWeight() const
Double_t GetDeDw() const
Computes the derivative of the error wrt the neuron weight.
Double_t GetInput() const
Returns neuron input.
Bool_t fNewDeriv
buffer containing the last neuron output
void SetWeight(Double_t w)
Sets the neuron weight to w.
Double_t GetBranch() const
Returns the formula value.
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 Sigmoid(Double_t x) const
The Sigmoid.
TSynapse * GetPost(Int_t n) const
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="")
Bool_t fNewValue
buffer containing the last neuron input
Int_t fIndex
formula to be used for inputs and outputs
Double_t GetValue() const
Computes the output using the appropriate function and all the weighted inputs, or uses the branch as...
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.
void SetNewEvent() const
Inform the neuron that inputs of the network have changed, so that the buffered values have to be rec...
TObject * At(Int_t idx) const
A TTree is a list of TBranches.
Double_t GetDerivative() const
computes the derivative for the appropriate function at the working point
ENeuronType GetType() const
Returns the neuron type.