/// <summary> /// Updates the statistics. /// </summary> /// <param name="synapse">The sample synapse.</param> public void Update(Synapse synapse) { if (synapse.Role == Role) { ++Count; Distance.AddSample(synapse.Distance); Delay.AddSample(synapse.Delay); Weight.AddSample(synapse.Weight); Efficacy.Update(synapse.EfficacyStat); } return; }