コード例 #1
0
        public void CloneTest()
        {
            LognormalDistribution target = new LognormalDistribution(1.7, 4.2);

            LognormalDistribution clone = (LognormalDistribution)target.Clone();

            Assert.AreNotSame(target, clone);
            Assert.AreEqual(target.Entropy, clone.Entropy);
            Assert.AreEqual(target.Location, clone.Location);
            Assert.AreEqual(target.Mean, clone.Mean);
            Assert.AreEqual(target.Shape, clone.Shape);
            Assert.AreEqual(target.StandardDeviation, clone.StandardDeviation);
            Assert.AreEqual(target.Variance, clone.Variance);
        }
コード例 #2
0
        public void CloneTest()
        {
            LognormalDistribution target = new LognormalDistribution(1.7, 4.2);

            LognormalDistribution clone = (LognormalDistribution)target.Clone();

            Assert.AreNotSame(target, clone);
            Assert.AreEqual(target.Entropy, clone.Entropy);
            Assert.AreEqual(target.Location, clone.Location);
            Assert.AreEqual(target.Mean, clone.Mean);
            Assert.AreEqual(target.Shape, clone.Shape);
            Assert.AreEqual(target.StandardDeviation, clone.StandardDeviation);
            Assert.AreEqual(target.Variance, clone.Variance);
        }