Accord.Tests.Statistics.GammaDistributionTest.GenerateTest2 C# (CSharp) Метод

GenerateTest2() приватный Метод

private GenerateTest2 ( ) : void
Результат void
        public void GenerateTest2()
        {
            Accord.Math.Tools.SetupGenerator(0);

            GammaDistribution target = new GammaDistribution(5, 2);

            double[] samples = target.Generate(10000000);

            var actual = GammaDistribution.Estimate(samples);

            Assert.AreEqual(5, actual.Scale, 1e-3);
            Assert.AreEqual(2, actual.Shape, 1e-3);
        }