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

MeanTest() private method

private MeanTest ( ) : void
return void
        public void MeanTest()
        {
            double a = -1;
            double b = 5;
            UniformContinuousDistribution target = new UniformContinuousDistribution(a, b);
            double expected = (a + b) / 2.0;
            double actual = target.Mean;
            Assert.AreEqual(expected, actual);
        }