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

            Neuron.ID = num;
        }
Example #2
0
 public virtual void Disconnect(TNeuron Neuron)
 {
   foreach (TNeuralWeight tneuralWeight in this.weights)
   {
     if (tneuralWeight.Neuron == Neuron)
     {
       this.weights.Remove((object) tneuralWeight);
       break;
     }
   }
 }
Example #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);
    }
Example #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);
 }
Example #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);
 }
Example #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);
 }
Example #7
0
 public virtual void Connect(TNeuron Neuron)
 {
   this.weights.Add((object) new TNeuralWeight(Neuron));
 }
Example #8
0
		public override void Disconnect(TNeuron Neuron)
		{
		}
Example #9
0
		public override void Connect(TNeuron Neuron)
		{
		}
Example #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;
 }
Example #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;
 }
Example #12
0
 public void AddNeuron(TNeuron Neuron)
 {
   if (Neuron.ID != -1)
     return;
   int num = this.fNeuron.Add((object) Neuron);
   Neuron.ID = num;
 }
Example #13
0
 public override void Disconnect(TNeuron Neuron)
 {
 }
Example #14
0
 public override void Connect(TNeuron Neuron)
 {
 }