Accord.Tests.Statistics.GammaDistributionTest.GenerateTest5 C# (CSharp) 메소드

GenerateTest5() 개인적인 메소드

private GenerateTest5 ( ) : void
리턴 void
        public void GenerateTest5()
        {
            Accord.Math.Tools.SetupGenerator(1);

            var target = new GammaDistribution(42, 0.1337);
            var samples = target.Generate(10000000);

            var actual = GammaDistribution.Estimate(samples);
            Assert.AreEqual(42, actual.Scale, 5e-2);
            Assert.AreEqual(0.1337, actual.Shape, 5e-4);
        }