Exemplo n.º 1
0
        /// <summary>
        /// Построить график от выбранного канала
        /// </summary>
        /// <param name="number_Kanal"></param>
        public void MakeGraph_of_Chosen_Kanal(int number_Kanal)
        {
            long[,] row_1 = initdata.Get_row1();

            int b = initdata.Get_b();


            for (int y = 100; y < b - 10; y++)
            {
                if (maximum < row_1[y, number_Kanal])
                {
                    maximum = row_1[y, number_Kanal];
                }

                if (minimum > row_1[y, number_Kanal])
                {
                    minimum = row_1[y, number_Kanal];
                }
            }

            if ((maximum - minimum) < 200)
            {
                shift_grafh     = 200;
                shift_grafh_ekg = 200;
            }
            else if ((maximum - minimum) > 500)
            {
                shift_grafh     = -500;
                shift_grafh_ekg = 400;
            }
            else if ((maximum - minimum) > 1000)
            {
                shift_grafh     = -5500;
                shift_grafh_ekg = 5500;
            }
            else
            {
                shift_grafh_ekg = 200;
                shift_grafh     = -300;
            }


            // Создадим список точек для кривой f1(x)
            PointPairList f1_list = new PointPairList();


            // Заполним массив точек для кривой f1-3(x)
            for (int y = 3; y < b - 10; y++)
            {
                f1_list.Add(row_1[y, 0] / 1000, row_1[y, number_Kanal]);
            }

            pane.XAxis.Title.Text = "t, мc";
            pane.YAxis.Title.Text = "R, Ом";
            pane.Title.Text       = "Данные";

            LineItem f1_curve = pane.AddCurve("ФПГ", f1_list, Color.Blue, SymbolType.None);
        }
        /// <summary>
        ///
        /// </summary>
        /// <param name="initial_Data"></param>
        /// <param name="osob_point_diff"></param>
        /// <param name="number_canal_const"></param>
        public Reflector_Const_Data(Initial_Data initial_Data, long[,] osob_point_diff, int number_canal_const)
        {
            this.row_1                  = initial_Data.Get_row1();
            this.osob_point_diff        = osob_point_diff;
            this.number_canal_const     = number_canal_const;
            this.length_row_1           = initial_Data.Get_b();
            this.length_osob_point_diff = osob_point_diff.Length / 15;

            osob_point_const = new long[15, length_osob_point_diff];

            line_reflection      = new long[length_row_1];
            row_chosen_reflected = new long[length_row_1];
        }
 public void Set_row_1(Initial_Data initial_Data)
 {
     this.row_1        = initial_Data.Get_row1();
     this.length_row_1 = initial_Data.Get_b();
 }