예제 #1
0
        private void Marks_Y_Load(object sender, EventArgs e)
        {
            CustomToolTip[] tip = new CustomToolTip[20];
            for (int i = 0; i < 20; i++)
            {
                tip[i] = new CustomToolTip();
                tip[i].AutomaticDelay = 1000;
            }
            tip[0].SetCustomToolTip(this.pictureBox1, "Выборочное_среднее_V.png");
            tip[1].SetCustomToolTip(this.pictureBox2, "Выборочное_среднее_квадратов_V.png");
            tip[2].SetCustomToolTip(this.pictureBox3, "дисперсия_V.png");

            tip[3].SetCustomToolTip(this.pictureBox4, "мат_ожид_Y.png");
            tip[4].SetCustomToolTip(this.pictureBox5, "дисперсия_Y.png");
            tip[5].SetCustomToolTip(this.pictureBox6, "среднеквадр_Y.png");

            tip[6].SetCustomToolTip(this.pictureBox7, "мат_ожид_усл_X.png");
            tip[7].SetCustomToolTip(this.pictureBox8, "дисп_услов_Y.png");
            tip[8].SetCustomToolTip(this.pictureBox9, "среднеквадр_услов_Y.png");



            for (int i = 0; i < Program.r; i++)
            {
                raspredY.Rows.Add();

                raspredY.Rows[i].Cells[0].Value = i + 1;

                raspredY.Rows[i].Cells[1].Value = MainForm.calc.uslov_vel_Y[i];

                raspredY.Rows[i].Cells[2].Value = MainForm.calc.inter_Y[i].getN();

                raspredY.Rows[i].Cells[3].Value = MainForm.calc.sum_uslov_vel_Y[i];

                raspredY.Rows[i].Cells[4].Value = MainForm.calc.kv_sum_uslov_vel_Y[i];
            }

            sum_all_usl_v.Text      = String.Format("{0:0.00}", MainForm.calc.all_average_uslov_Y);
            all_sum_usl_in_2_v.Text = String.Format("{0:0.00}", MainForm.calc.all_average_uslov_Y_in_two);
            disp_usl_v.Text         = String.Format("{0:0.00}", MainForm.calc.dispers_uslov_Y);

            mat_ojid_Y.Text = String.Format("{0:0.000000}", MainForm.calc.all_average_Y);
            disp_Y.Text     = String.Format("{0:0.000000}", MainForm.calc.dispers_Y);
            sred_kv_Y.Text  = String.Format("{0:0.00}", MainForm.calc.sred_kvadr_Y);

            sum_all_usl_v_vivod.Text = String.Format("{0:0.000000}", MainForm.calc.all_average_uslov_Y_vivod);
            disp_usl_v_vivod.Text    = String.Format("{0:0.000000}", MainForm.calc.dispers_uslov_Y_vivod);
            sred_kv_usl_v_vivod.Text = String.Format("{0:0.00}", MainForm.calc.sred_kvadr_uslov_Y_vivod);
        }
예제 #2
0
 private void MainForm_Load(object sender, EventArgs e)
 {
     CustomToolTip[] tip = new CustomToolTip[10];
     for (int i = 0; i < 10; i++)
     {
         tip[i] = new CustomToolTip();
         tip[i].AutomaticDelay = 1000;
     }
     tip[0].SetCustomToolTip(this.labelRash, "расширение_X.png");
     tip[1].SetCustomToolTip(this.labelLenghtInter, "длина_интервала_Y.png");
     tip[2].SetCustomToolTip(this.labelRashY, "расширение_Y.png");
     tip[3].SetCustomToolTip(this.labelLenghtInterY, "длина_интервала_X.png");
     tip[4].SetCustomToolTip(this.pictureBox1, "vibor_koef.png");
     tip[5].SetCustomToolTip(pictureBox2, "info_X.png");
     tip[6].SetCustomToolTip(pictureBox3, "info_Y.png");
     tip[7].SetCustomToolTip(pictureBox4, "vibor_urav.png");
 }
예제 #3
0
        private void Confidence_Load(object sender, EventArgs e)
        {
            CustomToolTip[] tip = new CustomToolTip[10];
            for (int i = 0; i < 10; i++)
            {
                tip[i] = new CustomToolTip();
                tip[i].AutomaticDelay = 1000;
            }
            tip[0].SetCustomToolTip(this.pictureBox1, "довер_MX.png");
            tip[1].SetCustomToolTip(this.pictureBox2, "довер_DX.png");

            label_dover_MX_min.Text = String.Format("{0:0.00}", MainForm.calc.dover_inter_MX_min);
            label_dover_MX_max.Text = String.Format("{0:0.00}", MainForm.calc.dover_inter_MX_max);
            label_dover_DX_min.Text = String.Format("{0:0.00}", MainForm.calc.dover_inter_DX_min);
            label_dover_DX_max.Text = String.Format("{0:0.00}", MainForm.calc.dover_inter_DX_max);
            label1.Text             = Convert.ToString(MainForm.calc.dover_P);
            label2.Text             = Convert.ToString(1 - MainForm.calc.dover_P);
        }
예제 #4
0
        private void Hipotesy_X_Load(object sender, EventArgs e)
        {
            CustomToolTip[] tip = new CustomToolTip[10];
            for (int i = 0; i < 10; i++)
            {
                tip[i] = new CustomToolTip();
            }

            tip[0].SetCustomToolTip(pictureBox5, "hi_kvadr.png");
            tip[1].SetCustomToolTip(pictureBox4, "hi_kvadr.png");
            tip[2].SetCustomToolTip(pictureBox2, "kvantil.png");
            tip[3].SetCustomToolTip(pictureBox6, "laplas_X.png");
            tip[4].SetCustomToolTip(label1, "m_label.png");
            tip[5].SetCustomToolTip(label7, "a_label.png");
            tip[6].SetCustomToolTip(label2, "mk1_label.png");

            for (int i = 0; i < Program.r; i++)
            {
                raspredX.Rows.Add();

                raspredX.Rows[i].Cells[0].Value = i + 1;


                if (i == Program.r - 1)
                {
                    raspredX.Rows[i].Cells[1].Value = "[" + MainForm.calc.inter_X[i].getF() + ";" + "+∞" + ")";
                }
                else
                if (i == 0)
                {
                    raspredX.Rows[i].Cells[1].Value = "(" + "-∞" + ";" + MainForm.calc.inter_X[i].getS() + ")";
                }
                else
                {
                    raspredX.Rows[i].Cells[1].Value = "[" + MainForm.calc.inter_X[i].getF() + ";" + MainForm.calc.inter_X[i].getS() + ")";
                }

                raspredX.Rows[i].Cells[2].Value = MainForm.calc.inter_X[i].getN();

                raspredX.Rows[i].Cells[3].Value = String.Format("{0:0.00}", MainForm.calc.norm_vel_X[i]);

                raspredX.Rows[i].Cells[4].Value = String.Format("{0:0.000}", MainForm.calc.form_lap_X[i]);

                raspredX.Rows[i].Cells[5].Value = String.Format("{0:0.000}", MainForm.calc.ver_sob_X[i]);

                raspredX.Rows[i].Cells[6].Value = String.Format("{0:0.00}", MainForm.calc.teor_chast_X[i]);
            }


            double all_n = 0, all_teor_vel = 0;

            int k = 0;

            for (int i = 0; i < MainForm.calc.d_X; i++)
            {
                raspredInitX.Rows.Add();

                char count = MainForm.calc.flags_X[k];
                char step  = (char)1;
                raspredInitX.Rows[i].Cells[0].Value = (k + 1).ToString();

                while (count != 0)
                {
                    raspredInitX.Rows[i].Cells[0].Value += ", " + (k + 1 + step++).ToString();
                    count--;
                }
                k += step;

                if (i == MainForm.calc.d_X - 1)
                {
                    raspredInitX.Rows[i].Cells[1].Value = "[" + MainForm.calc.new_inter_X[i].getF() + ";" + "+∞" + ")";
                }
                else
                if (i == 0)
                {
                    raspredInitX.Rows[i].Cells[1].Value = "(" + "-∞" + ";" + MainForm.calc.new_inter_X[i].getS() + ")";
                }
                else
                {
                    raspredInitX.Rows[i].Cells[1].Value = "[" + MainForm.calc.new_inter_X[i].getF() + ";" + MainForm.calc.new_inter_X[i].getS() + ")";
                }

                raspredInitX.Rows[i].Cells[2].Value = MainForm.calc.new_inter_X[i].getN();

                raspredInitX.Rows[i].Cells[3].Value = String.Format("{0:0.00}", MainForm.calc.teor_vel_X[i]);

                raspredInitX.Rows[i].Cells[4].Value = String.Format("{0:0.00}", MainForm.calc.dlya_stat_X[i]);

                all_n        += MainForm.calc.new_inter_X[i].getN();
                all_teor_vel += MainForm.calc.teor_vel_X[i];
            }

            //
            raspredInitX.Rows.Add();
            raspredInitX.Rows[MainForm.calc.d_X].Cells[0].Value = "∑";
            raspredInitX.Rows[MainForm.calc.d_X].Cells[1].Value = "-";
            raspredInitX.Rows[MainForm.calc.d_X].Cells[2].Value = all_n;
            raspredInitX.Rows[MainForm.calc.d_X].Cells[3].Value = all_teor_vel;
            raspredInitX.Rows[MainForm.calc.d_X].Cells[4].Value = String.Format("{0:0.00}", MainForm.calc.hi_vib_X);

            //
            raspredInitX.Height = raspredInitX.Rows.GetRowsHeight(DataGridViewElementStates.Visible) + raspredInitX.ColumnHeadersHeight;

            interval.Text    = Convert.ToString(MainForm.calc.d_X);
            step_svobod.Text = Convert.ToString(MainForm.calc.step_svobodi_X);
            hi.Text          = String.Format("{0:0.00}", MainForm.calc.hi_vib_X);
            hi_vivod.Text    = String.Format("{0:0.00}", MainForm.calc.hi_vib_X);
            quant.Text       = String.Format("{0:0.00}", MainForm.calc.quant_hi_X);
            svoboda.Text     = "(" + Convert.ToString(MainForm.calc.step_svobodi_X) + ") =";
            gamma.Text       = Convert.ToString(1 - MainForm.calc.hi_a);
            textBox1.Text    = Convert.ToString(MainForm.calc.hi_a);

            if (MainForm.calc.hi_vib_X < MainForm.calc.quant_hi_X)
            {
                znak.Text    = "<";
                uslovie.Text = "не противоречит";
            }
            else
            {
                znak.Text    = ">";
                uslovie.Text = "противоречит";
            }
        }