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

StandardTest() private method

private StandardTest ( ) : void
return void
        public void StandardTest()
        {
            LognormalDistribution actual = LognormalDistribution.Standard;
            Assert.AreEqual(0, actual.Location);
            Assert.AreEqual(1, actual.Shape);

            bool thrown = false;
            try { actual.Fit(new[] { 0.0 }); }
            catch (InvalidOperationException) { thrown = true; }
            Assert.IsTrue(thrown);
        }