Exemple #1
0
 public static double[] CalcData(BasicMLDataSet data)
 {
     BasicNetwork network;
     double num;
     int num2;
     double num3;
     ChartWindow window;
     <>c__DisplayClass5 class2;
     bool flag;
     double[] res;
     XElement xml = App.Services.GetService<x1a44f162f55467a5>().Xml;
     if ((((uint) num) - ((uint) flag)) > uint.MaxValue)
     {
         goto Label_00F6;
     }
     if (1 != 0)
     {
         if ((((uint) num3) - ((uint) num2)) < 0)
         {
             double[] numArray;
             return numArray;
         }
         App.Services.GetService<xf8efd7615008d32e>().x4ab8973167965816();
         network = App.Services.GetService<xf8efd7615008d32e>().x5b0926ce641e48a7;
         data = App.Services.GetService<IDataProcessor>().ProcessDataSet(data);
         num = network.CalculateError(data);
         res = new double[network.InputCount];
         num2 = 0;
         goto Label_00E9;
     }
     Label_003D:
     window = new ChartWindow {
         chart = { Title = "Значимость параметров" },
         barSeries = { ItemsSource = Enumerable.Select<double, Tuple<double, bool>>(res, new Func<double, Tuple<double, bool>>(class2, this.<CalcData>b__4)) }
     };
     window.ShowDialog();
     App.Services.GetService<x1a44f162f55467a5>().Xml = xml;
     return res;
     Label_00C0:
     if (flag)
     {
         goto Label_00F6;
     }
     num3 = res.Max();
     num2 = 0;
     while (true)
     {
         flag = num2 < network.InputCount;
         if (flag)
         {
             res[num2] /= num3;
         }
         else
         {
             GC.Collect();
             goto Label_003D;
         }
         num2++;
     }
     Label_00E9:
     flag = num2 < network.InputCount;
     goto Label_00C0;
     Label_00F6:
     res[num2] = network.CalculateError(data.xf266aaef11483efa(num2)) - num;
     if ((((uint) num2) | 15) != 0)
     {
         num2++;
         if ((((uint) num2) + ((uint) flag)) > uint.MaxValue)
         {
             goto Label_003D;
         }
         goto Label_00E9;
     }
     goto Label_00C0;
 }