File indexing completed on 2025-01-18 10:12:28
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef ROOT_TSynapse
0013 #define ROOT_TSynapse
0014
0015 #include "TObject.h"
0016
0017 class TNeuron;
0018
0019
0020 class TSynapse : public TObject {
0021 public:
0022 TSynapse();
0023 TSynapse(TNeuron*, TNeuron*, Double_t w = 1);
0024 ~TSynapse() override {}
0025 void SetPre(TNeuron* pre);
0026 void SetPost(TNeuron* post);
0027 inline TNeuron* GetPre() const { return fpre; }
0028 inline TNeuron* GetPost() const { return fpost; }
0029 void SetWeight(Double_t w);
0030 inline Double_t GetWeight() const { return fweight; }
0031 Double_t GetValue() const;
0032 Double_t GetDeDw() const;
0033 void SetDEDw(Double_t in);
0034 Double_t GetDEDw() const { return fDEDw; }
0035
0036 private:
0037 TNeuron* fpre;
0038 TNeuron* fpost;
0039 Double_t fweight;
0040 Double_t fDEDw;
0041
0042 ClassDefOverride(TSynapse, 1)
0043 };
0044
0045 #endif