示例#1
0
 public void AddWeight(TNeuralWeight Weight)
 {
     if (this.fWeight.IndexOf((object)Weight) == -1)
     {
         return;
     }
     this.fWeight.Add((object)Weight);
 }
示例#2
0
 public TNeuralWeight GetMaxWeight()
 {
   if (this.weights.Count == 0)
     return (TNeuralWeight) null;
   TNeuralWeight tneuralWeight1 = (TNeuralWeight) this.weights[0];
   double weight = tneuralWeight1.Weight;
   foreach (TNeuralWeight tneuralWeight2 in this.weights)
   {
     if (tneuralWeight2.Weight > weight)
     {
       tneuralWeight1 = tneuralWeight2;
       weight = tneuralWeight2.Weight;
     }
   }
   return tneuralWeight1;
 }
示例#3
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);
 }
示例#4
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);
 }
示例#5
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;
 }
示例#6
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;
 }
示例#7
0
 public void AddWeight(TNeuralWeight Weight)
 {
   if (this.fWeight.IndexOf((object) Weight) == -1)
     return;
   this.fWeight.Add((object) Weight);
 }