示例#1
0
        private double Sum()
        {
            double computeValue = 0.0f;

            Dendrites.ToList().ForEach(x => computeValue += x.InputPulse.Value * x.SynapticWeight);

            return(computeValue);
        }
示例#2
0
 public void UpdateWeights(double new_weights)
 {
     Dendrites.ToList().ForEach(x => x.SynapticWeight = new_weights);
 }