Exemple #1
0
 /// <summary>
 /// Empty Constructor
 /// </summary>
 public Neuron()
 {
     InputSynapses  = new List <Synapse>();
     OutputSynapses = new List <Synapse>();
     Bias           = NeuralNet.GetRandom();
 }
Exemple #2
0
 public Synapse(Neuron inputNeuron, Neuron outputNeuron)
 {
     InputNeuron  = inputNeuron;
     OutputNeuron = outputNeuron;
     Weight       = NeuralNet.GetRandom();
 }