示例#1
0
        public void AddNeuron(TNeuron Neuron)
        {
            if (Neuron.ID != -1)
            {
                return;
            }
            int num = this.fNeuron.Add((object)Neuron);

            Neuron.ID = num;
        }
示例#2
0
 public virtual void Disconnect(TNeuron Neuron)
 {
   foreach (TNeuralWeight tneuralWeight in this.weights)
   {
     if (tneuralWeight.Neuron == Neuron)
     {
       this.weights.Remove((object) tneuralWeight);
       break;
     }
   }
 }
示例#3
0
		public TNeuralWeight(TNeuron neuron)
    {
			this.Neuron = neuron;
			this.RlTATm4JD = neuron.ID;
      if (TNeuralNetwork.Network.InitMode == EWeightInitMode.Random)
        this.Randomize();
      else
				this.Weight = 0.0;
			this.rYdS9wvbM = this.Weight;
      this.uOXtaamso = 0.0;
      this.iwqhxvM4s = 0.0;
      this.fIoOrFPcr = TNeuralNetwork.Network.RpropDeltaInit;
      this.UvZNU7mk8 = this.fIoOrFPcr;
      TNeuralNetwork.Network.AddWeight(this);
    }
示例#4
0
 public TNeuralWeight GetMaxWeight()
 {
     if (this.u25o0XTtW)
     {
         double num = -10000000000.0;
         foreach (TNeuron tneuron in this.fNeuron)
         {
             TNeuralWeight maxWeight = tneuron.GetMaxWeight();
             if (maxWeight != null && maxWeight.Weight > num)
             {
                 this.Vlon5OFCQ = tneuron;
                 this.hG4PgBLCK = maxWeight;
                 num            = maxWeight.Weight;
             }
         }
         this.u25o0XTtW = false;
     }
     return(this.hG4PgBLCK);
 }
示例#5
0
 public TNeuralWeight GetMinWeight()
 {
     if (this.KCL7WIToG)
     {
         double num = 10000000000.0;
         foreach (TNeuron tneuron in this.fNeuron)
         {
             TNeuralWeight minWeight = tneuron.GetMinWeight();
             if (minWeight != null && minWeight.Weight < num)
             {
                 this.ahkE1lI8Y = tneuron;
                 this.EGtFBCxEX = minWeight;
                 num            = minWeight.Weight;
             }
         }
         this.KCL7WIToG = false;
     }
     return(this.EGtFBCxEX);
 }
示例#6
0
 public TNeuralWeight(TNeuron neuron)
 {
     this.Neuron    = neuron;
     this.RlTATm4JD = neuron.ID;
     if (TNeuralNetwork.Network.InitMode == EWeightInitMode.Random)
     {
         this.Randomize();
     }
     else
     {
         this.Weight = 0.0;
     }
     this.rYdS9wvbM = this.Weight;
     this.uOXtaamso = 0.0;
     this.iwqhxvM4s = 0.0;
     this.fIoOrFPcr = TNeuralNetwork.Network.RpropDeltaInit;
     this.UvZNU7mk8 = this.fIoOrFPcr;
     TNeuralNetwork.Network.AddWeight(this);
 }
示例#7
0
 public virtual void Connect(TNeuron Neuron)
 {
   this.weights.Add((object) new TNeuralWeight(Neuron));
 }
示例#8
0
		public override void Disconnect(TNeuron Neuron)
		{
		}
示例#9
0
		public override void Connect(TNeuron Neuron)
		{
		}
示例#10
0
 public TNeuralWeight GetMaxWeight()
 {
   if (this.u25o0XTtW)
   {
     double num = -10000000000.0;
     foreach (TNeuron tneuron in this.fNeuron)
     {
       TNeuralWeight maxWeight = tneuron.GetMaxWeight();
       if (maxWeight != null && maxWeight.Weight > num)
       {
         this.Vlon5OFCQ = tneuron;
         this.hG4PgBLCK = maxWeight;
         num = maxWeight.Weight;
       }
     }
     this.u25o0XTtW = false;
   }
   return this.hG4PgBLCK;
 }
示例#11
0
 public TNeuralWeight GetMinWeight()
 {
   if (this.KCL7WIToG)
   {
     double num = 10000000000.0;
     foreach (TNeuron tneuron in this.fNeuron)
     {
       TNeuralWeight minWeight = tneuron.GetMinWeight();
       if (minWeight != null && minWeight.Weight < num)
       {
         this.ahkE1lI8Y = tneuron;
         this.EGtFBCxEX = minWeight;
         num = minWeight.Weight;
       }
     }
     this.KCL7WIToG = false;
   }
   return this.EGtFBCxEX;
 }
示例#12
0
 public void AddNeuron(TNeuron Neuron)
 {
   if (Neuron.ID != -1)
     return;
   int num = this.fNeuron.Add((object) Neuron);
   Neuron.ID = num;
 }
示例#13
0
 public override void Disconnect(TNeuron Neuron)
 {
 }
示例#14
0
 public override void Connect(TNeuron Neuron)
 {
 }