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

MeanTest() private method

private MeanTest ( ) : void
return void
        public void MeanTest()
        {
            var target = new JointDistribution(new[] { 0.1, 0.4, 0.5 });
            double expected = 0 * 0.1 + 1 * 0.4 + 2 * 0.5;
            double actual = target.Mean[0];

            Assert.AreEqual(expected, actual);
        }