Inheritance: Accord.Statistics.Testing.FTest
        public void LeveneTestConstructorTest()
        {
            // Example from NIST/SEMATECH e-Handbook of Statistical Methods,
            // http://www.itl.nist.gov/div898/handbook/eda/section3/eda35a.htm

            double[][] samples = BartlettTestTest.samples;
            LeveneTest target = new LeveneTest(samples, median: true);

            Assert.AreEqual(9, target.DegreesOfFreedom1);
            Assert.AreEqual(90, target.DegreesOfFreedom2);
            Assert.AreEqual(1.7059176930008935, target.Statistic, 1e-10);
            Assert.IsFalse(double.IsNaN(target.Statistic));
        }
        public void LeveneTestConstructorTest2()
        {
            double[][] samples =
            {
                new double[]  { 250, 260, 230, 270 },
                new double[]  { 310, 330, 280, 360 },
                new double[]  { 250, 230, 220, 260 },
                new double[]  { 340, 270, 300, 320 },
                new double[]  { 250, 240, 270, 290 }
            };

            LeveneTest result = new LeveneTest(samples, true);

            Assert.AreEqual(0.7247191011235955, result.Statistic);
            Assert.AreEqual(0.58857793222910693, result.PValue);
        }
        public void LeveneTestConstructorTest3()
        {
            double[][] samples =
            {
                new double[]  { 50, 10, 12, 42, 125, 21, 62, 13, 66, 200, 54, 32, 64, 13, 65 },
                new double[]  { 10, 42, 12, 36, 12, 52, 100, 24,  1, 52, 95, 157, 52, 12, 50 }
            };

            double[] expected = 
            {
                0.0619, 0.0569, 0.0494,
                0.0498, 0.0535, 0.0519
            };

            for (int i = 0; i < 6; i++)
            {
                double percent = i / 10.0;
                LeveneTest result = new LeveneTest(samples, percent);
                
                Assert.AreEqual(expected[i], result.Statistic, 1e-4);
            }
        }