Пример #1
0
        void Inputdata()
        {
            Ww = new List <List <double> >();
            T  = new List <Tran>();
            for (int i = 0; i < textBox1.Lines.Count(); i++)
            {
                Tran     Temp = new Tran();
                double[] dd   = new double[3];
                for (int j = 0; j < 3; j++)
                {
                    dd[j] = double.Parse(textBox1.Lines[i].Split(';')[j]);
                }
                Temp.Add(dd, double.Parse(textBox2.Lines[i]));
                T.Add(Temp);
            }
            int z = 0;

            ++z;
            z++;
            z      = z;
            FirstW = new List <double>();
            // double.Parse( textBox3.Text.Split(';'));
            FirstW.AddRange(new double[] { 1, -1, 0 });
            Ww.Add(FirstW);

            Times = int.Parse(textBox4.Text);
            L     = double.Parse(textBox5.Text);
            Count = T.Count;
        }
Пример #2
0
        void SetTest()
        {
            Ww = new List <List <double> >();

            Tran Temp = new Tran();

            Temp.Add(new double[] { 1, 0, 1 }, -1);
            T.Add(Temp);


            Temp = new Tran();
            Temp.Add(new double[] { 0, -1, -1 }, 1);
            T.Add(Temp);


            Temp = new Tran();
            Temp.Add(new double[] { -1, -0.5, -1 }, 1);
            T.Add(Temp);


            FirstW = new List <double>();
            FirstW.AddRange(new double[] { 1, -1, 0 });
            Ww.Add(FirstW);

            Times = 9999;
            L     = 0.1d;
            Count = T.Count;
        }