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

StandardTest() private méthode

private StandardTest ( ) : void
Résultat 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);
        }