Exemplo n.º 1
0
        /// <summary>
        /// Построение матрицы "Минковский"
        /// </summary>
        /// <param name="method"></param>
        /// <param name="k_dim"></param>
        /// <param name="p"></param>
        public void BuildMatrix(string f, string method, int k_dim, double p)
        {
            File_Converter converter = new File_Converter();

            DataTable excel_data = converter.Load_Excel_Table_From_File(f);

            Data_Converter d_conv = new Data_Converter();

            MDS_Matrix matrix = new MDS_Matrix(excel_data, f);

            this.tabControl.Items.Add(new TabItem
            {
                Header     = selection + k_dim.ToString() + p.ToString(),
                Content    = matrix,
                IsSelected = true
            });
        }
Exemplo n.º 2
0
        /// <summary>
        /// Построение матрицы "Евклидовый"
        /// </summary>
        /// <param name="method"></param>
        /// <param name="k_dim"></param>
        public void BuildMatrix(string f, string method, int k_dim)
        {
            File_Converter converter = new File_Converter();

            DataTable excel_data = converter.Load_Excel_Table_From_File(f);

            Data_Converter d_conv = new Data_Converter();

            MDS_Matrix matrix = new MDS_Matrix(excel_data, f);

            //Matrix_2D Matrix_2D = new Matrix_2D();

            // Matrix_2D.Test_Builder(excel_data, matrix, d_conv.list_m_s, d_conv.list_w_s);

            this.tabControl.Items.Add(new TabItem
            {
                Header     = selection + k_dim.ToString(),
                Content    = matrix,
                IsSelected = true
            });
        }
Exemplo n.º 3
0
        /// <summary>
        /// Построение основной матрицы при загрузки формы
        /// </summary>
        private void Build_Matrix()
        {
            Data_Converter converter = new Data_Converter();

            converter.Convert_Excel_to_Series(excel_table_data);

            list_matrix_series = converter.list_m_s;
            list_work_series   = converter.list_w_s;

            x_axis = converter.x_a;
            y_axis = converter.y_a;

            plot_title = converter.plot_t;

            columnNames_r = converter.column_r;

            Matrix_2D Matrix_2D = new Matrix_2D();

            Matrix_2D.Test_Builder(excel_table_data, x_axis, y_axis, plot_title, list_matrix_series, list_work_series, this);

            list_matrix_models = Matrix_2D.list_m_m;
            list_work_models   = Matrix_2D.list_w_m;
        }