Exemple #1
0
 public Neuron(int nextSize)
 {
     Synapses = new Synapse[nextSize];
     for (int i = 0; i < Synapses.Length; i++)
     {
         Synapses[i] = new Synapse(random.NextDouble() * 2 - 1);
     }
 }
Exemple #2
0
 public Neuron(params double[] synapses)
 {
     Synapses = new Synapse[synapses.Length];
     for (int i = 0; i < Synapses.Length; i++)
     {
         Synapses[i] = new Synapse(synapses[i]);
     }
 }