Exemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            List <double> valuesX = ScanFromTextBox(XtextBox);
            List <double> valuesY = ScanFromTextBox(YtextBox);

            double[] X = valuesX.ToArray();
            double[] Y = valuesY.ToArray();

            Lab08 = new Correlation(X, Y);
            Lab08.SetT(Convert.ToDouble(TtextBox.Text));

            PrintDataInForm();
            int a = 0;
        }
Exemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            double[] x = { 0.35, 0.35, 0.30, 0.36, 0.31, 0.36, 0.34, 0.38, 0.37, 0.38, 0.36, 0.40 };
            double[] y = { 0.24, 0.32, 0.29, 0.31, 0.27, 0.32, 0.29, 0.37, 0.37, 0.30, 0.38, 0.33 };

            List <double> valuesX = ScanFromTextBox(XtextBox);
            List <double> valuesY = ScanFromTextBox(YtextBox);

            double[] X = valuesX.ToArray();
            double[] Y = valuesY.ToArray();
            //crutch = Crutch(crutch);
            Lab07 = new Correlation(X, Y);
            //valuesX.Clear();
            //valuesY.Clear();


            PrintDataInForm();
        }