Accord.Tests.Statistics.LeveneTestTest.LeveneTestConstructorTest3 C# (CSharp) Method

LeveneTestConstructorTest3() private method

private LeveneTestConstructorTest3 ( ) : void
return void
        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);
            }
        }
    }