Пример #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));
            }
        }
Пример #3
0
        public TInputNeuralLayer(int NNeuron, bool AddThreshold)
        {
            if (AddThreshold)
            {
                this.fNeuron.Add((object)new TThresholdNeuron());
                TInputNeuralLayer tinputNeuralLayer = this;
                int num = tinputNeuralLayer.fNNeuron + 1;
                tinputNeuralLayer.fNNeuron = num;
                this.oEXc819xw             = true;
            }
            else
            {
                this.oEXc819xw = false;
            }
            for (int index = 0; index < NNeuron; ++index)
            {
                this.fNeuron.Add((object)new TInputNeuron());
            }
            TInputNeuralLayer tinputNeuralLayer1 = this;
            int num1 = tinputNeuralLayer1.fNNeuron + NNeuron;

            tinputNeuralLayer1.fNNeuron = num1;
        }