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

BetaMLEFit_RealWeights() private method

private BetaMLEFit_RealWeights ( ) : void
return void
        public void BetaMLEFit_RealWeights()
        {
            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 = new GeneralizedBetaDistribution(1, 1);


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

            target.Fit(x, w.ToDouble(), options);

            Assert.AreEqual(1.1401591160220996, target.Alpha);
            Assert.AreEqual(0.58735469613259694, target.Beta);
        }