public override void Next(Propagate p) { switch (p) { case Propagate.Error: for (int i = 0; i < neurons.Length; i++) { neurons[i].Next(Propagate.Error); } break; case Propagate.Signal: for (int i = 0; i < neurons.Length; i++) { neurons[i].Next(Propagate.Signal); } break; } }
public virtual void Next(Propagate p) { switch (p) { case Propagate.Error: for (int i = 0; i < Input.Count; i++) { Input[i].Set <double?>(ANN.Global.Err, 0.0); } foreach (CNN.Filter f in filters) { f.Next <double?>(Propagate.Error); } break; case Propagate.Signal: foreach (CNN.Filter f in filters) { f.Next <double?>(Propagate.Signal); } break; } }