77 if (fPreNeuron == NULL)
78 Log() << kFATAL <<
"<GetWeightedValue> synapse not connected to neuron" <<
Endl;
80 return (fWeight * fPreNeuron->GetActivationValue());
88 if (fPostNeuron == NULL)
89 Log() << kFATAL <<
"<GetWeightedDelta> synapse not connected to neuron" <<
Endl;
91 return fWeight * fPostNeuron->GetDelta();
100 fWeight += -fLearnRate * wDelta;
109 fDelta += fPostNeuron->GetDelta() * fPreNeuron->GetActivationValue();
117 TTHREAD_TLS_DECL_ARG(
MsgLogger,logger,
"TSynapse");
int Int_t
Signed integer 4 bytes (int)
ostringstream derivative to redirect and format output
void SetWeight(Double_t weight)
set synapse weight
Double_t fWeight
weight of the synapse
Double_t GetWeightedValue()
get output of pre-neuron weighted by synapse weight
Double_t GetWeightedDelta()
get error field of post-neuron weighted by synapse weight
virtual ~TSynapse()
destructor
void AdjustWeight()
adjust the weight based on the error field all ready calculated by CalculateDelta
void CalculateDelta()
calculate/adjust the error field for this synapse
MsgLogger & Endl(MsgLogger &ml)
static const Int_t fgUNINITIALIZED