public override void Propagate(float value) { _value += value; Inputs.AccountSignal(); if (Inputs.CheckCountAndReset()) { _value = TanHActivation.Activate(_value); Calculate(); } }
public override void Propagate(float value) { _value += value; Inputs.AccountSignal(); if (Inputs.CheckCountAndReset()) { _value = Function.Activation(_value); _lastValue = _value; _value = 0; } }
public override void Propagate(float value) { _value += value; Inputs.AccountSignal(); if (Inputs.CheckCountAndReset()) { _value = Function.Activation(_value); foreach (var output in Outputs) { output.Propagate(_value); } _lastValue = _value; _value = 0; } }