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

EstimateTest() private method

private EstimateTest ( ) : void
return void
        public void EstimateTest()
        {
            double[] observations = { 2, 2, 2, 2, 2 };

            NormalOptions options = new NormalOptions() { Regularization = 0.1 };

            LognormalDistribution actual = LognormalDistribution.Estimate(observations, options);
            Assert.AreEqual(System.Math.Log(2), actual.Location);
            Assert.AreEqual(System.Math.Sqrt(0.1), actual.Shape);
        }