Beispiel #1
0
    def test_normal_stddev(self):
        """
        Test the standard deviation computation for a normal distribution
        """
        cases = (
            ((0, 1), 1),
            ((12.4, 1.2), 1.2),
        )

        for args, stddev in cases:
            dist = NormalDistribution(*args)
            self.assertAlmostEqual(dist.get_stddev(), stddev, places=4)
Beispiel #2
0
    def test_normal_stddev(self):
        """
        Test the standard deviation computation for a normal distribution
        """
        cases = (
            ((0, 1), 1),
            ((12.4, 1.2), 1.2),
        )

        for args, stddev in cases:
            dist = NormalDistribution(*args)
            self.assertAlmostEqual(dist.get_stddev(), stddev, places=4)