Accord.Tests.Statistics.BinomialTestTest.BinomialTestConstructorTest3 C# (CSharp) Method

BinomialTestConstructorTest3() private method

private BinomialTestConstructorTest3 ( ) : void
return void
        public void BinomialTestConstructorTest3()
        {
            // GNU R (0.096248626708984375)
            // Wolfram Alpha reports 0.06357
            BinomialTest target = new BinomialTest(5, 18);

            Assert.AreEqual(OneSampleHypothesis.ValueIsDifferentFromHypothesis, target.Hypothesis);
            Assert.AreEqual(DistributionTail.TwoTail, target.Tail);

            Assert.AreEqual(0.063564300537109319, target.PValue, 1e-4);
            Assert.IsFalse(target.Significant);
        }