AIMA.Test.Core.Unit.Learning.Framework.InformationAndGainTest.testInformationCalculation C# (CSharp) 메소드

testInformationCalculation() 개인적인 메소드

private testInformationCalculation ( ) : void
리턴 void
        public void testInformationCalculation()
        {
            double[] fairCoinProbabilities = new double[] { 0.5, 0.5 };
            double[] loadedCoinProbabilities = new double[] { 0.01, 0.99 };

            Assert
                    .AreEqual(1.0, Util.information(fairCoinProbabilities),
                            0.001);
            Assert.AreEqual(0.08079313589591118, Util
                    .information(loadedCoinProbabilities), 0.000000000000000001);
        }