예제 #1
0
 private void InitializeNeuronsWithInput(Vector input)
 {
     CheckInput(input, Neurons.First());
     for (var i = 0; i < Neurons.Length; i++)
     {
         for (var j = 0; j < Neurons[i].Length; j++)
         {
             Neurons[i][j] = i == 0 ? input[j] : 0;
         }
     }
 }
예제 #2
0
 public INeuron GetNeuronById(int id) => Neurons.First(x => x.Id == id);