示例#1
0
 /// <summary>
 /// Updates statistics
 /// </summary>
 /// <param name="synapse">Synapse</param>
 public void Update(Synapse synapse)
 {
     if (synapse.Role == Role)
     {
         ++Count;
         Distance.AddSampleValue(synapse.Distance);
         Delay.AddSampleValue(synapse.Delay);
         Weight.AddSampleValue(synapse.Weight);
         Efficacy.Update(synapse.EfficacyStat);
     }
     return;
 }