diff --git a/uravu/distribution.py b/uravu/distribution.py index c569985..16118ef 100644 --- a/uravu/distribution.py +++ b/uravu/distribution.py @@ -127,6 +127,7 @@ def n(self): """ return np.percentile(self.samples, [50])[0] + @property def s(self): """ Get the standard deviation of the distribution. For a non-normal distribution, this will return :py:attr:`None`. diff --git a/uravu/tests/test_optimize.py b/uravu/tests/test_optimize.py index 89b7e09..1382bb5 100644 --- a/uravu/tests/test_optimize.py +++ b/uravu/tests/test_optimize.py @@ -23,10 +23,7 @@ class TestOptimize(unittest.TestCase): Unit tests for optimize module. """ - def test_ln_likelihood_a(self): - """ - Test ln_likelihood function. - """ + def test_ln_likelihood(self): test_rel = relationship.Relationship( utils.straight_line, TEST_X, TEST_Y ) @@ -37,9 +34,6 @@ def test_ln_likelihood_a(self): assert_almost_equal(actual_lnl, expected_lnl, decimal=0) def test_negative_lnl(self): - """ - Test negative_lnl function. - """ test_rel = relationship.Relationship( utils.straight_line, TEST_X, TEST_Y ) @@ -50,9 +44,6 @@ def test_negative_lnl(self): assert_almost_equal(actual_negative_lnl, expected_negtive_lnl, decimal=0) def test_max_lnlikelihood(self): - """ - Test negative_lnl function. - """ test_rel = relationship.Relationship( utils.straight_line, TEST_X, TEST_Y )