示例#1
0
 public virtual double CalculateValue()
 {
     return(Value = NeuralNetwork.SigmoidFunction(InputSynapses.Sum(a => a.Weight * a.InputNeuron.Value) + Bias));
 }
示例#2
0
 public virtual double CalculateDerivative()
 {
     return(NeuralNetwork.SigmoidDerivative(Value));
 }
示例#3
0
 public Neuron()
 {
     InputSynapses  = new List <Synapse>();
     OutputSynapses = new List <Synapse>();
     Bias           = NeuralNetwork.NextRandom();
 }