示例#1
0
        /// <summary>
        /// Найти и записать особые точки постояннного канала относительно переменного
        /// </summary>
        /// <param name="init_data"></param>
        /// <param name="osob_point_diff"></param>
        /// <param name="number_canal_const"></param>
        /// <returns></returns>
        public static long[,] Set_Const_Special_Point_from_Diff(Initial_Data init_data, long[,] osob_point_diff, int number_canal_const)
        {
            int length_osob_point_diff = osob_point_diff.Length / 15;

            long[,] osob_point_const = new long[15, length_osob_point_diff];

            for (int i = 0; i < length_osob_point_diff; i++)
            {
                long time_B1     = osob_point_diff[3, i];
                int  position_B1 = init_data.Find_Position_in_Time(time_B1);
                osob_point_const[3, i]  = time_B1;
                osob_point_const[2, i]  = init_data.Get_row1_x_y(position_B1, number_canal_const);
                osob_point_const[10, i] = osob_point_const[2, i];

                long time_B2     = osob_point_diff[5, i];
                int  position_B2 = init_data.Find_Position_in_Time(time_B2);
                osob_point_const[5, i] = time_B2;
                osob_point_const[4, i] = init_data.Get_row1_x_y(position_B2, number_canal_const) - osob_point_const[10, i];

                long time_B3     = osob_point_diff[7, i];
                int  position_B3 = init_data.Find_Position_in_Time(time_B3);
                osob_point_const[7, i] = time_B3;
                osob_point_const[6, i] = init_data.Get_row1_x_y(position_B3, number_canal_const) - osob_point_const[10, i];

                long time_B4     = osob_point_diff[9, i];
                int  position_B4 = init_data.Find_Position_in_Time(time_B4);
                osob_point_const[9, i] = time_B4;
                osob_point_const[8, i] = init_data.Get_row1_x_y(position_B4, number_canal_const) - osob_point_const[10, i];
            }
            return(osob_point_const);
        }
示例#2
0
        public UseZedgraph(ZedGraphControl zedd, Initial_Data data)
        {
            this.zedgraph = zedd;
            pane          = zedd.GraphPane;

            this.initdata = data;
        }
        /// <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];
        }
        /////////////////////////
        /////////////////////////
        // новое
        //ЭКГ мах -     0
        //ЭКГ мах -х -  1
        // В1, В5 -     2
        // В1x, В5x -   3
        // В2 -         4
        // В2x -        5
        // В3 -         6
        // В3x -        7
        // В4 -         8
        // В4x -        9
        //osob_10  -    Изначальная высота
        // schet[4, w - 1] = schet[4, w - 1] - Shift_BX(schet[3, w - 1], schet[3, w], schet[5, w - 1], schet[2, w - 1], schet[2, w]);// максимум В2

        ////////////////////////

        /// <summary>
        /// Установить особые точки постоянного канала исходя их особых точек переменного
        /// </summary>
        /// <param name="init_data"></param>
        public void Set_Const_Special_Point_from_Diff(Initial_Data init_data)
        {
            osob_point_const = Function_additional.Set_Const_Special_Point_from_Diff(init_data, osob_point_diff, number_canal_const);
        }
 public void Set_row_1(Initial_Data initial_Data)
 {
     this.row_1        = initial_Data.Get_row1();
     this.length_row_1 = initial_Data.Get_b();
 }