TNeuron Class Reference

#include <TNeuron.h>

Inheritance diagram for TNeuron:

TNamed TNamed TObject TObject TObject TObject List of all members.

Public Types

enum  ENeuronType
enum  ENeuronType

Public Member Functions

 TNeuron (ENeuronType type=kSigmoid, const char *name="", const char *title="", const char *extF="", const char *extD="")
virtual ~TNeuron ()
TSynapseGetPre (Int_t n) const
TSynapseGetPost (Int_t n) const
TNeuronGetInLayer (Int_t n) const
TTreeFormulaUseBranch (TTree *, const char *)
Double_t GetInput () const
Double_t GetValue () const
Double_t GetDerivative () const
Double_t GetError () const
Double_t GetTarget () const
Double_t GetDeDw () const
Double_t GetBranch () const
ENeuronType GetType () const
void SetWeight (Double_t w)
Double_t GetWeight () const
void SetNormalisation (Double_t mean, Double_t RMS)
const Double_tGetNormalisation () const
void SetNewEvent () const
void SetDEDw (Double_t in)
Double_t GetDEDw () const
void ForceExternalValue (Double_t value)
void AddInLayer (TNeuron *)
 TNeuron (ENeuronType type=kSigmoid, const char *name="", const char *title="", const char *extF="", const char *extD="")
virtual ~TNeuron ()
TSynapseGetPre (Int_t n) const
TSynapseGetPost (Int_t n) const
TNeuronGetInLayer (Int_t n) const
TTreeFormulaUseBranch (TTree *, const char *)
Double_t GetInput () const
Double_t GetValue () const
Double_t GetDerivative () const
Double_t GetError () const
Double_t GetTarget () const
Double_t GetDeDw () const
Double_t GetBranch () const
ENeuronType GetType () const
void SetWeight (Double_t w)
Double_t GetWeight () const
void SetNormalisation (Double_t mean, Double_t RMS)
const Double_tGetNormalisation () const
void SetNewEvent () const
void SetDEDw (Double_t in)
Double_t GetDEDw () const
void ForceExternalValue (Double_t value)
void AddInLayer (TNeuron *)

Protected Member Functions

Double_t Sigmoid (Double_t x) const
Double_t DSigmoid (Double_t x) const
void AddPre (TSynapse *)
void AddPost (TSynapse *)
Double_t Sigmoid (Double_t x) const
Double_t DSigmoid (Double_t x) const
void AddPre (TSynapse *)
void AddPost (TSynapse *)

Private Member Functions

 TNeuron (const TNeuron &)
TNeuronoperator= (const TNeuron &)
 TNeuron (const TNeuron &)
TNeuronoperator= (const TNeuron &)

Private Attributes

TObjArray fpre
TObjArray fpost
TObjArray flayer
Double_t fWeight
Double_t fNorm [2]
ENeuronType fType
TFormulafExtF
TFormulafExtD
TTreeFormulafFormula
Int_t fIndex
 formula to be used for inputs and outputs
Bool_t fNewInput
 index in the formula
Double_t fInput
 do we need to compute fInput again ?
Bool_t fNewValue
 buffer containing the last neuron input
Double_t fValue
 do we need to compute fValue again ?
Bool_t fNewDeriv
 buffer containing the last neuron output
Double_t fDerivative
 do we need to compute fDerivative again ?
Bool_t fNewDeDw
 buffer containing the last neuron derivative
Double_t fDeDw
 do we need to compute fDeDw again ?
Double_t fDEDw
 buffer containing the last derivative of the error
TFormulafExtF
TFormulafExtD
TTreeFormulafFormula

Friends

class TSynapse

Detailed Description

Definition at line 48 of file TNeuron.h.


Member Enumeration Documentation

enum TNeuron::ENeuronType

Definition at line 52 of file TNeuron.h.

enum TNeuron::ENeuronType

Definition at line 52 of file TNeuron.h.


Constructor & Destructor Documentation

TNeuron::TNeuron ( ENeuronType  type = kSigmoid,
const char *  name = "",
const char *  title = "",
const char *  extF = "",
const char *  extD = "" 
)

virtual TNeuron::~TNeuron (  )  [inline, virtual]

Definition at line 57 of file TNeuron.h.

TNeuron::TNeuron ( const TNeuron  )  [private]

TNeuron::TNeuron ( ENeuronType  type = kSigmoid,
const char *  name = "",
const char *  title = "",
const char *  extF = "",
const char *  extD = "" 
)

virtual TNeuron::~TNeuron (  )  [inline, virtual]

Definition at line 57 of file TNeuron.h.

TNeuron::TNeuron ( const TNeuron  )  [private]


Member Function Documentation

TSynapse* TNeuron::GetPre ( Int_t  n  )  const [inline]

Definition at line 58 of file TNeuron.h.

References TObjArray::At(), and fpre.

Referenced by TMultiLayerPerceptron::Export().

TSynapse* TNeuron::GetPost ( Int_t  n  )  const [inline]

Definition at line 59 of file TNeuron.h.

References TObjArray::At(), and fpost.

TNeuron* TNeuron::GetInLayer ( Int_t  n  )  const [inline]

Definition at line 60 of file TNeuron.h.

References TObjArray::At(), and flayer.

Referenced by TMultiLayerPerceptron::Export().

TTreeFormula * TNeuron::UseBranch ( TTree ,
const char *   
)

Definition at line 868 of file TNeuron.cxx.

References fFormula, fIndex, fNorm, Form(), TH1::GetMean(), TTreeFormula::GetNdata(), TH1::GetRMS(), TRegexp::Index(), len, val, and TObject::Warning().

Referenced by TMultiLayerPerceptron::AttachData().

Double_t TNeuron::GetInput (  )  const

Definition at line 916 of file TNeuron.cxx.

References fInput, fNewInput, fpre, fWeight, TObjArray::GetEntriesFast(), i, and TObjArray::UncheckedAt().

Referenced by GetValue().

Double_t TNeuron::GetValue (  )  const

Definition at line 936 of file TNeuron.cxx.

References TFormula::Eval(), TMath::Exp(), fExtF, flayer, fNewValue, fNorm, fpre, fType, fValue, GetBranch(), TObjArray::GetEntriesFast(), GetInput(), i, kExternal, kGauss, kLinear, kOff, kSigmoid, kSoftmax, kTanh, nentries, Sigmoid(), TMath::TanH(), TObjArray::UncheckedAt(), and value.

Referenced by TSynapse::GetDeDw(), GetDerivative(), GetError(), and TSynapse::GetValue().

Double_t TNeuron::GetDerivative (  )  const

Definition at line 999 of file TNeuron.cxx.

References DSigmoid(), TFormula::Eval(), TMath::Exp(), fDerivative, fExtD, fNewDeriv, fpre, fType, fWeight, TObjArray::GetEntriesFast(), GetValue(), i, kExternal, kGauss, kLinear, kOff, kSigmoid, kSoftmax, kTanh, nentries, TMath::TanH(), and TObjArray::UncheckedAt().

Referenced by GetDeDw().

Double_t TNeuron::GetError (  )  const

Definition at line 1050 of file TNeuron.cxx.

References fNorm, fpost, GetBranch(), TObjArray::GetEntriesFast(), and GetValue().

Referenced by GetDeDw().

Double_t TNeuron::GetTarget (  )  const

Definition at line 1060 of file TNeuron.cxx.

References fNorm, fpost, GetBranch(), and TObjArray::GetEntriesFast().

Double_t TNeuron::GetDeDw (  )  const

Definition at line 1070 of file TNeuron.cxx.

References fDeDw, fNewDeDw, fpost, fType, GetDerivative(), TObjArray::GetEntriesFast(), GetError(), i, kSoftmax, and TObjArray::UncheckedAt().

Referenced by TMultiLayerPerceptron::ComputeDEDw(), TSynapse::GetDeDw(), and TMultiLayerPerceptron::MLP_Stochastic().

Double_t TNeuron::GetBranch (  )  const

Definition at line 906 of file TNeuron.cxx.

References TTreeFormula::EvalInstance(), fFormula, fIndex, and isnan().

Referenced by GetError(), GetTarget(), and GetValue().

TNeuron::ENeuronType TNeuron::GetType (  )  const

Definition at line 861 of file TNeuron.cxx.

References fType.

Referenced by TMultiLayerPerceptron::Export().

void TNeuron::SetWeight ( Double_t  w  ) 

Definition at line 1129 of file TNeuron.cxx.

References fWeight.

Referenced by TMultiLayerPerceptron::LoadWeights(), TMultiLayerPerceptron::MLP_Batch(), TMultiLayerPerceptron::MLP_Line(), TMultiLayerPerceptron::MLP_Stochastic(), and TMultiLayerPerceptron::Randomize().

Double_t TNeuron::GetWeight (  )  const [inline]

Definition at line 71 of file TNeuron.h.

References fWeight.

Referenced by TMultiLayerPerceptron::Export(), TMultiLayerPerceptron::LineSearch(), TMultiLayerPerceptron::MLP_Batch(), and TMultiLayerPerceptron::MLP_Stochastic().

void TNeuron::SetNormalisation ( Double_t  mean,
Double_t  RMS 
)

Definition at line 1118 of file TNeuron.cxx.

References fNorm.

Referenced by TMultiLayerPerceptron::AttachData(), and TMultiLayerPerceptron::LoadWeights().

const Double_t* TNeuron::GetNormalisation (  )  const [inline]

Definition at line 73 of file TNeuron.h.

References fNorm.

Referenced by TMultiLayerPerceptron::Export().

void TNeuron::SetNewEvent (  )  const

Definition at line 1138 of file TNeuron.cxx.

Referenced by TMultiLayerPerceptron::Evaluate().

void TNeuron::SetDEDw ( Double_t  in  ) 

Definition at line 1149 of file TNeuron.cxx.

References fDEDw.

Referenced by TMultiLayerPerceptron::ComputeDEDw().

Double_t TNeuron::GetDEDw (  )  const [inline]

Definition at line 76 of file TNeuron.h.

References fDEDw.

Referenced by TMultiLayerPerceptron::BFGSDir(), TMultiLayerPerceptron::ComputeDEDw(), TMultiLayerPerceptron::ConjugateGradientsDir(), TMultiLayerPerceptron::DerivDir(), TMultiLayerPerceptron::MLP_Batch(), TMultiLayerPerceptron::SetGammaDelta(), TMultiLayerPerceptron::SteepestDir(), and TMultiLayerPerceptron::Train().

void TNeuron::ForceExternalValue ( Double_t  value  ) 

Definition at line 1110 of file TNeuron.cxx.

References fNewValue, fNorm, and fValue.

Referenced by TMultiLayerPerceptron::Evaluate().

void TNeuron::AddInLayer ( TNeuron  ) 

Definition at line 851 of file TNeuron.cxx.

References TObjArray::AddLast(), TObjArray::Expand(), flayer, TObjArray::GetEntriesFast(), and TCollection::GetSize().

Referenced by TMultiLayerPerceptron::BuildLastLayer(), and TMultiLayerPerceptron::BuildOneHiddenLayer().

Double_t TNeuron::Sigmoid ( Double_t  x  )  const [protected]

Definition at line 82 of file TNeuron.cxx.

References TMath::Exp(), and i.

Referenced by GetValue().

Double_t TNeuron::DSigmoid ( Double_t  x  )  const [protected]

Definition at line 815 of file TNeuron.cxx.

References TMath::Abs(), and TMath::Exp().

Referenced by GetDerivative().

void TNeuron::AddPre ( TSynapse  )  [protected]

Definition at line 829 of file TNeuron.cxx.

References TObjArray::AddLast(), TObjArray::Expand(), fpre, TObjArray::GetEntriesFast(), and TCollection::GetSize().

Referenced by TSynapse::SetPost(), and TSynapse::TSynapse().

void TNeuron::AddPost ( TSynapse  )  [protected]

Definition at line 840 of file TNeuron.cxx.

References TObjArray::AddLast(), TObjArray::Expand(), fpost, TObjArray::GetEntriesFast(), and TCollection::GetSize().

Referenced by TSynapse::SetPre(), and TSynapse::TSynapse().

TNeuron& TNeuron::operator= ( const TNeuron  )  [private]

TSynapse* TNeuron::GetPre ( Int_t  n  )  const [inline]

Definition at line 58 of file TNeuron.h.

References TObjArray::At(), and fpre.

TSynapse* TNeuron::GetPost ( Int_t  n  )  const [inline]

Definition at line 59 of file TNeuron.h.

References TObjArray::At(), and fpost.

TNeuron* TNeuron::GetInLayer ( Int_t  n  )  const [inline]

Definition at line 60 of file TNeuron.h.

References TObjArray::At(), and flayer.

TTreeFormula* TNeuron::UseBranch ( TTree ,
const char *   
)

Double_t TNeuron::GetInput (  )  const

Double_t TNeuron::GetValue (  )  const

Double_t TNeuron::GetDerivative (  )  const

Double_t TNeuron::GetError (  )  const

Double_t TNeuron::GetTarget (  )  const

Double_t TNeuron::GetDeDw (  )  const

Double_t TNeuron::GetBranch (  )  const

ENeuronType TNeuron::GetType (  )  const

void TNeuron::SetWeight ( Double_t  w  ) 

Double_t TNeuron::GetWeight (  )  const [inline]

Definition at line 71 of file TNeuron.h.

References fWeight.

void TNeuron::SetNormalisation ( Double_t  mean,
Double_t  RMS 
)

const Double_t* TNeuron::GetNormalisation (  )  const [inline]

Definition at line 73 of file TNeuron.h.

References fNorm.

void TNeuron::SetNewEvent (  )  const

void TNeuron::SetDEDw ( Double_t  in  ) 

Double_t TNeuron::GetDEDw (  )  const [inline]

Definition at line 76 of file TNeuron.h.

References fDEDw.

void TNeuron::ForceExternalValue ( Double_t  value  ) 

void TNeuron::AddInLayer ( TNeuron  ) 

Double_t TNeuron::Sigmoid ( Double_t  x  )  const [protected]

Double_t TNeuron::DSigmoid ( Double_t  x  )  const [protected]

void TNeuron::AddPre ( TSynapse  )  [protected]

void TNeuron::AddPost ( TSynapse  )  [protected]

TNeuron& TNeuron::operator= ( const TNeuron  )  [private]


Friends And Related Function Documentation

TSynapse [friend]

Definition at line 49 of file TNeuron.h.


Member Data Documentation

TObjArray TNeuron::fpre [private]

Definition at line 90 of file TNeuron.h.

Referenced by AddPre(), GetDerivative(), GetInput(), GetPre(), and GetValue().

TObjArray TNeuron::fpost [private]

Definition at line 91 of file TNeuron.h.

Referenced by AddPost(), GetDeDw(), GetError(), GetPost(), and GetTarget().

TObjArray TNeuron::flayer [private]

Definition at line 92 of file TNeuron.h.

Referenced by AddInLayer(), GetInLayer(), and GetValue().

Double_t TNeuron::fWeight [private]

Definition at line 93 of file TNeuron.h.

Referenced by GetDerivative(), GetInput(), GetWeight(), and SetWeight().

Double_t TNeuron::fNorm [private]

Definition at line 94 of file TNeuron.h.

Referenced by ForceExternalValue(), GetError(), GetNormalisation(), GetTarget(), GetValue(), SetNormalisation(), and UseBranch().

ENeuronType TNeuron::fType [private]

Definition at line 95 of file TNeuron.h.

Referenced by GetDeDw(), GetDerivative(), GetType(), and GetValue().

TFormula* TNeuron::fExtF [private]

Definition at line 96 of file TNeuron.h.

Referenced by GetValue().

TFormula* TNeuron::fExtD [private]

Definition at line 97 of file TNeuron.h.

Referenced by GetDerivative().

TTreeFormula* TNeuron::fFormula [private]

Definition at line 100 of file TNeuron.h.

Referenced by GetBranch(), and UseBranch().

Int_t TNeuron::fIndex [private]

formula to be used for inputs and outputs

Definition at line 101 of file TNeuron.h.

Referenced by GetBranch(), and UseBranch().

Bool_t TNeuron::fNewInput [private]

index in the formula

Definition at line 102 of file TNeuron.h.

Referenced by GetInput().

Double_t TNeuron::fInput [private]

do we need to compute fInput again ?

Definition at line 103 of file TNeuron.h.

Referenced by GetInput().

Bool_t TNeuron::fNewValue [private]

buffer containing the last neuron input

Definition at line 104 of file TNeuron.h.

Referenced by ForceExternalValue(), and GetValue().

Double_t TNeuron::fValue [private]

do we need to compute fValue again ?

Definition at line 105 of file TNeuron.h.

Referenced by ForceExternalValue(), and GetValue().

Bool_t TNeuron::fNewDeriv [private]

buffer containing the last neuron output

Definition at line 106 of file TNeuron.h.

Referenced by GetDerivative().

Double_t TNeuron::fDerivative [private]

do we need to compute fDerivative again ?

Definition at line 107 of file TNeuron.h.

Referenced by GetDerivative().

Bool_t TNeuron::fNewDeDw [private]

buffer containing the last neuron derivative

Definition at line 108 of file TNeuron.h.

Referenced by GetDeDw().

Double_t TNeuron::fDeDw [private]

do we need to compute fDeDw again ?

Definition at line 109 of file TNeuron.h.

Referenced by GetDeDw().

Double_t TNeuron::fDEDw [private]

buffer containing the last derivative of the error

Definition at line 110 of file TNeuron.h.

Referenced by GetDEDw(), and SetDEDw().

TFormula* TNeuron::fExtF [private]

Definition at line 96 of file TNeuron.h.

TFormula* TNeuron::fExtD [private]

Definition at line 97 of file TNeuron.h.

TTreeFormula* TNeuron::fFormula [private]

Definition at line 100 of file TNeuron.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:43:17 2011 for ROOT_528-00b_version by  doxygen 1.5.1