예제 #1
0
        protected void TestDoWorkPaired(PairedTest pt)
        {
            List <double> x = new List <double> ();
            List <double> y = new List <double> ();

            ExtractXYLists(DataToProcess.GetRankedList(), x, y);

            TestResult ts = StatsTester.RunPairedTest(x, y, pt);

            Gtk.Application.Invoke(delegate {
                covStatLabel.Text  = ts.Statistic.ToString("G7");
                covLProbLabel.Text = ts.LeftProbability.ToString("e2");
                covRProbLabel.Text = ts.RightProbability.ToString("e2");

                if (ts.Statistic > 0)
                {
                    covRProbLabel.Text += " *";
                }
                else
                {
                    covLProbLabel.Text += " *";
                }
            });
        }