Ejemplo n.º 1
0
        void PrintDataInForm()
        {
            CovtextBox.Text   = Math.Round(Lab07.GetCov(), ROUND_DIGITS).ToString();
            SxtextBox.Text    = Math.Round(Lab07.GetSx(), ROUND_DIGITS).ToString();
            SytextBox.Text    = Math.Round(Lab07.GetSy(), ROUND_DIGITS).ToString();
            RXYtextBox.Text   = Math.Round(Lab07.GetCorr(), ROUND_DIGITS).ToString();
            RomantextBox.Text = Math.Round(Lab07.GetRomanovskiSrit(), ROUND_DIGITS).ToString();

            if (Math.Abs(Lab07.GetCorr()) > Lab07.GetRomanovskiSrit())
            {
                FinishtextBox.Text     = ">";
                ConcluciontextBox.Text = "Отже:\n Між X та Y існує кореляційний зв'язок";
            }
            else
            if (Math.Abs(Lab07.GetCorr()) == Lab07.GetRomanovskiSrit())
            {
                FinishtextBox.Text     = "=";
                ConcluciontextBox.Text = "Отже:\n Між X та Y існує кореляційний зв'язок";
            }
            else
            {
                FinishtextBox.Text     = "<";
                ConcluciontextBox.Text = "Отже:\n Між X та Y немає кореляційног зв'язоку";
            }
        }
Ejemplo n.º 2
0
        void PrintDataInForm()
        {
            double[] FisherInterval = Lab08.GetFisherInterval();
            double   FisherLength   = Lab08.GetFishelLEngth();

            CovtextBox.Text = Math.Round(Lab08.GetCov(), ROUND_DIGITS).ToString();
            SxtextBox.Text  = Math.Round(Lab08.GetSx(), ROUND_DIGITS).ToString();
            SytextBox.Text  = Math.Round(Lab08.GetSy(), ROUND_DIGITS).ToString();
            RXYtextBox.Text = Math.Round(Lab08.GetCorr(), ROUND_DIGITS).ToString();

            Z1textBox.Text  = Math.Round(FisherInterval[0], ROUND_DIGITS).ToString();
            Z1textBox2.Text = Math.Round(FisherInterval[0], ROUND_DIGITS).ToString();
            Z1textBox3.Text = Math.Round(FisherInterval[0], ROUND_DIGITS).ToString();

            Z2textBox.Text  = Math.Round(FisherInterval[1], ROUND_DIGITS).ToString();
            Z2textBox2.Text = Math.Round(FisherInterval[1], ROUND_DIGITS).ToString();
            Z2textBox3.Text = Math.Round(FisherInterval[1], ROUND_DIGITS).ToString();

            LtextBox.Text = Math.Round(FisherLength, ROUND_DIGITS).ToString();

            if (FisherLength > Math.Abs(Lab08.GetCorr()))
            {
                FinishtextBox.Text     = " > ";
                ConcluciontextBox.Text = "Отже:\n Між X та Y НЕ існує кореляційний зв'язок";
            }
            else
            if (FisherLength == Math.Abs(Lab08.GetCorr()))
            {
                FinishtextBox.Text     = "=";
                ConcluciontextBox.Text = "Отже:\n Між X та Y існує кореляційний зв'язок";
            }
            else
            {
                FinishtextBox.Text     = "<";
                ConcluciontextBox.Text = "Отже:\n Між X та Y  існує кореляційний зв'язок";
            }
        }