Accord.Tests.Statistics.LogNormalDistributionTest.EstimateTest1 C# (CSharp) Method

EstimateTest1() private method

private EstimateTest1 ( ) : void
return void
        public void EstimateTest1()
        {
            double[] observations = 
            { 
                1.26, 0.34, 0.70, 1.75, 50.57, 1.55, 0.08, 0.42, 0.50, 3.20, 
                0.15, 0.49, 0.95, 0.24, 1.37, 0.17, 6.98, 0.10, 0.94, 0.38 
            };

            LognormalDistribution actual = LognormalDistribution.Estimate(observations);


            double expectedLocation = -0.307069523211925;
            double expectedShape = 1.51701553338489;

            Assert.AreEqual(expectedLocation, actual.Location, 1e-15);
            Assert.AreEqual(expectedShape, actual.Shape, 1e-14);
        }