Accord.Tests.Statistics.DiscreteDistributionTest.MeanTest2 C# (CSharp) Method

MeanTest2() private method

private MeanTest2 ( ) : void
return void
        public void MeanTest2()
        {
            var target = new GeneralDiscreteDistribution(42, 0.1, 0.4, 0.5);
            double expected = 42 * 0.1 + 43 * 0.4 + 44 * 0.5;
            double actual = target.Mean;

            Assert.AreEqual(expected, actual);
        }