Пример #1
0
 public Sinaps[] GetOutputSinapses(int neyronIndex)
 {
     Sinaps[] result = new Sinaps[Capacity];
     for (int i = 0; i < Capacity; i++)
     {
         result[i] = Neyrons[i].InputSinapses[neyronIndex];
     }
     return(result);
 }
Пример #2
0
 public Neyron(int weightsCount, NeyralNetworkConfig config)
 {
     Value         = 0;
     Delta         = 0;
     InputSinapses = new Sinaps[weightsCount];
     for (int i = 0; i < weightsCount; i++)
     {
         InputSinapses[i] = new Sinaps(config, this);
     }
 }