Accord.Tests.Statistics.LogNormalDistributionTest.EstimateTest2 C# (CSharp) Méthode

EstimateTest2() private méthode

private EstimateTest2 ( ) : void
Résultat void
        public void EstimateTest2()
        {
            double[] observations = { 0.04, 0.12, 1.52 };

            double[] weights = { 0.25, 0.50, 0.25 };
            LognormalDistribution actual = LognormalDistribution.Estimate(observations, weights);

            Assert.AreEqual(-1.76017314060255, actual.Location, 1e-15);
            Assert.AreEqual(1.6893403335885702, actual.Shape);
        }