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

MeanTest2() private method

private MeanTest2 ( ) : void
return void
        public void MeanTest2()
        {
            var target = new JointDistribution(new [] { 42 }, new[] { 0.1, 0.4, 0.5 });
            double expected = 42 * 0.1 + 43 * 0.4 + 44 * 0.5;
            double actual = target.Mean[0];
             
            Assert.AreEqual(expected, actual);
        }