Accord.Tests.Statistics.JointDistributionTest.MeanTest3 C# (CSharp) Method

MeanTest3() private method

private MeanTest3 ( ) : void
return void
        public void MeanTest3()
        {
            var target = new JointDistribution(new[] { 2 }, new [] { 0.5, 0.5 });
            double expected = (2.0 + 3.0) / 2.0;
            double actual = target.Mean[0];

            Assert.AreEqual(expected, actual);
        }