Beispiel #1
0
        }//窗体载入

        private void button7_Click(object sender, EventArgs e)//间接测量量H的相关计算

        {
            for (int i = 0; i < fiveData.Length; i++)
            {
                if (fiveData[i] != i)
                {
                    MessageBox.Show("数据缺少,请返回回第一页将直接测量量计算完整!");//确保计算H所需数据全部计算完毕

                    return;
                }
            }

            double Hbuquedingdu;

            double Hxiangdui;

            Cal[6] = Calculate.Hcalculate(Cal[2], Cal[0], Cal[1]); //计算H的平均值

            Hbuquedingdu = Calculate.Hbuquedingdu(Cal);            //计算H的总不确定度

            Cal[10] = Hbuquedingdu;

            Hxiangdui = Calculate.Xiangduibuqueding1(Hbuquedingdu, Cal[6]);

            textBox6.Text = Convert.ToString(Calculate.A(Cal[6], 2));

            textBox7.Text = Convert.ToString(Calculate.A(Hbuquedingdu, 2));

            textBox8.Text = Convert.ToString(Calculate.A(Hxiangdui, 2)) + "%";

            button8.Enabled = true;//H计算完毕,激活I的计算按钮
        }