Accord.Tests.Statistics.DiscreteDistributionTest.FitTest C# (CSharp) 메소드

FitTest() 개인적인 메소드

private FitTest ( ) : void
리턴 void
        public void FitTest()
        {
            GeneralDiscreteDistribution target = new GeneralDiscreteDistribution(4);
            double[] values = { 0.00, 1.00, 2.00, 3.00 };
            double[] weights = { 0.25, 0.25, 0.25, 0.25 };

            target.Fit(values, weights);

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

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