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

LeveneTestConstructorTest() private method

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