Accord.Tests.Statistics.AnovaTest.FunctionTest C# (CSharp) 메소드

FunctionTest() 개인적인 메소드

private FunctionTest ( ) : void
리턴 void
        public void FunctionTest()
        {
            int s = 2;
            int p = 2;
            Anova target = new Anova(s, p);

            // Values from examples by Manju M. Pai, 2003
            // The code, however, is computed differently.

            double[] x = new double[] { 5, 4 };
            double[] y = new double[] { 3, 2 };

            double expected = 120;
            double actual = target.Function(x, y);
            Assert.AreEqual(expected, actual);
        }