Logo ROOT   6.13/01
Reference Guide
List of all members | Public Member Functions | Private Attributes | List of all members
TSynapse Class Reference

Definition at line 30 of file TSynapse.h.

Public Member Functions

 TSynapse ()
 Default constructor. More...
 
 TSynapse (TNeuron *, TNeuron *, Double_t w=1)
 Constructor that connects two neurons. More...
 
virtual ~TSynapse ()
 
Double_t GetDeDw () const
 Computes the derivative of the error wrt the synapse weight. More...
 
Double_t GetDEDw () const
 
TNeuronGetPost () const
 
TNeuronGetPre () const
 
Double_t GetValue () const
 Returns the value: weithted input. More...
 
Double_t GetWeight () const
 
void SetDEDw (Double_t in)
 Sets the derivative of the total error wrt the synapse weight. More...
 
void SetPost (TNeuron *post)
 Sets the post-neuron. More...
 
void SetPre (TNeuron *pre)
 Sets the pre-neuron. More...
 
void SetWeight (Double_t w)
 Sets the weight of the synapse. More...
 

Private Attributes

Double_t fDEDw
 
TNeuronfpost
 
TNeuronfpre
 
Double_t fweight
 

#include <TSynapse.h>

Inheritance diagram for TSynapse:
[legend]

Constructor & Destructor Documentation

◆ TSynapse() [1/2]

TSynapse::TSynapse ( )

Default constructor.

Definition at line 32 of file TSynapse.cxx.

◆ TSynapse() [2/2]

TSynapse::TSynapse ( TNeuron pre,
TNeuron post,
Double_t  w = 1 
)

Constructor that connects two neurons.

Definition at line 43 of file TSynapse.cxx.

◆ ~TSynapse()

virtual TSynapse::~TSynapse ( )
inlinevirtual

Definition at line 34 of file TSynapse.h.

Member Function Documentation

◆ GetDeDw()

Double_t TSynapse::GetDeDw ( ) const

Computes the derivative of the error wrt the synapse weight.

Definition at line 92 of file TSynapse.cxx.

◆ GetDEDw()

Double_t TSynapse::GetDEDw ( ) const
inline

Definition at line 44 of file TSynapse.h.

◆ GetPost()

TNeuron* TSynapse::GetPost ( ) const
inline

Definition at line 38 of file TSynapse.h.

◆ GetPre()

TNeuron* TSynapse::GetPre ( ) const
inline

Definition at line 37 of file TSynapse.h.

◆ GetValue()

Double_t TSynapse::GetValue ( ) const

Returns the value: weithted input.

Definition at line 82 of file TSynapse.cxx.

◆ GetWeight()

Double_t TSynapse::GetWeight ( ) const
inline

Definition at line 40 of file TSynapse.h.

◆ SetDEDw()

void TSynapse::SetDEDw ( Double_t  in)

Sets the derivative of the total error wrt the synapse weight.

Definition at line 113 of file TSynapse.cxx.

◆ SetPost()

void TSynapse::SetPost ( TNeuron post)

Sets the post-neuron.

Definition at line 69 of file TSynapse.cxx.

◆ SetPre()

void TSynapse::SetPre ( TNeuron pre)

Sets the pre-neuron.

Definition at line 56 of file TSynapse.cxx.

◆ SetWeight()

void TSynapse::SetWeight ( Double_t  w)

Sets the weight of the synapse.

This weight is the multiplying factor applied on the output of a neuron in the linear combination given as input of another neuron.

Definition at line 105 of file TSynapse.cxx.

Member Data Documentation

◆ fDEDw

Double_t TSynapse::fDEDw
private

Definition at line 50 of file TSynapse.h.

◆ fpost

TNeuron* TSynapse::fpost
private

Definition at line 48 of file TSynapse.h.

◆ fpre

TNeuron* TSynapse::fpre
private

Definition at line 47 of file TSynapse.h.

◆ fweight

Double_t TSynapse::fweight
private

Definition at line 49 of file TSynapse.h.

Libraries for TSynapse:
[legend]

The documentation for this class was generated from the following files: