Accord.Tests.Statistics.GeneralizedBetaDistributionTest.BetaMLEFit_IntWeights C# (CSharp) Method

BetaMLEFit_IntWeights() private method

private BetaMLEFit_IntWeights ( ) : void
return void
        public void BetaMLEFit_IntWeights()
        {
            double[] x = { 1.0, 0.1, 0.5, 0.3, 0.5, 0.8, 0.6, 0.7, 0.9, 0.9, 0.9 };
            int[] w = { 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 2 };

            var target = GeneralizedBetaDistribution.Standard(0, 1);


            var options = new BetaOptions()
            {
                Method = BetaEstimationMethod.MaximumLikelihood
            };

            target.Fit(x, w, options);

            Assert.AreEqual(1.1810718232044195, target.Alpha);
            Assert.AreEqual(0.60843093922651903, target.Beta, 1e-10);
        }