protected override double GetOutputValue() { if (InputAxons.Count == 0) { return(Math.Tanh(0)); } return(Math.Tanh(InputAxons.Sum(x => x.Output))); }
protected override double GetOutputValue() { if (InputAxons.Count == 0) { return(Math.Tanh(0)); } var value = Math.Tanh(InputAxons.Sum(x => x.Output)); return(value > Bias ? value : Math.Tanh(0)); }