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

FitTest5() private method

private FitTest5 ( ) : void
return void
        public void FitTest5()
        {
            JointDistribution target = new JointDistribution(new[] { 4 });
            double[] values = { 0.00, 1.00, 2.00, 3.00 };
            double[] weights = { 0.25, 0.25, 0.25, 0.25 };

            target.Fit(Jagged.ColumnVector(values), weights);

            double[] expected = { 0.25, 0.25, 0.25, 0.25 };
            double[] actual = target.Frequencies;

            Assert.IsTrue(Matrix.IsEqual(expected, actual));
        }