public virtual void Compute() { var sum = Dendrites.Sum(dendrite => dendrite.Value * dendrite.Weight); Axon.Value = Activation(sum); }
public void Calculate() { Value = Dendrites.Sum(x => x.Weight * x.Neuron.Value); }