Пример #1
0
 public void Connect(TInputNeuralLayer InputLayer)
 {
   int num1 = 0;
   int num2 = 0;
   if (this.IsThreshold)
     num1 = 1;
   if (InputLayer.IsThreshold)
     num2 = 1;
   int num3 = Math.Min(this.GetNNeuron() - num1, InputLayer.GetNNeuron() - num2);
   for (int i = num1; i < num3; ++i)
     this.GetNeuron(i).Connect(InputLayer.GetNeuron(i - num2));
 }
Пример #2
0
        public void Connect(TInputNeuralLayer InputLayer)
        {
            int num1 = 0;
            int num2 = 0;

            if (this.IsThreshold)
            {
                num1 = 1;
            }
            if (InputLayer.IsThreshold)
            {
                num2 = 1;
            }
            int num3 = Math.Min(this.GetNNeuron() - num1, InputLayer.GetNNeuron() - num2);

            for (int i = num1; i < num3; ++i)
            {
                this.GetNeuron(i).Connect(InputLayer.GetNeuron(i - num2));
            }
        }