Accord.Tests.Statistics.UniformDistributionTest.EntropyTest C# (CSharp) Method

EntropyTest() private method

private EntropyTest ( ) : void
return void
        public void EntropyTest()
        {
            double a = 1;
            double b = 6;
            UniformContinuousDistribution target = new UniformContinuousDistribution(a, b);
            double expected = System.Math.Log(b - a);
            double actual = target.Entropy;
            Assert.AreEqual(expected, actual);
        }