private double Sum() { double computeValue = 0.0f; Dendrites.ToList().ForEach(x => computeValue += x.InputPulse.Value * x.SynapticWeight); return(computeValue); }
public void UpdateWeights(double new_weights) { Dendrites.ToList().ForEach(x => x.SynapticWeight = new_weights); }