public void DistributionBase() { // test that implementations on base Distribution classes function and agree with overridden implementations ContinuousDistribution d = new TestDistribution(); ContinuousDistribution t = new TriangularDistribution(0.0, 1.0, 1.0); Assert.IsTrue(TestUtilities.IsNearlyEqual(d.Mean, t.Mean)); Assert.IsTrue(TestUtilities.IsNearlyEqual(d.StandardDeviation, t.StandardDeviation)); Assert.IsTrue(TestUtilities.IsNearlyEqual(d.Skewness, t.Skewness)); Assert.IsTrue(TestUtilities.IsNearlyEqual(d.Median, t.Median)); }
public void DistributionBase() { // test that implementations on base Distribution classes function and agree with overridden implementations Distribution d = new TestDistribution(); Distribution t = new TriangularDistribution(0.0, 1.0, 1.0); Assert.IsTrue(TestUtilities.IsNearlyEqual(d.Mean, t.Mean)); Assert.IsTrue(TestUtilities.IsNearlyEqual(d.StandardDeviation, t.StandardDeviation)); Assert.IsTrue(TestUtilities.IsNearlyEqual(d.Skewness, t.Skewness)); Assert.IsTrue(TestUtilities.IsNearlyEqual(d.Median, t.Median)); }