diff --git a/tupak/core/prior.py b/tupak/core/prior.py index de458aecb27e106f09866e7b029c17c2ab565758..7de5077b99482a5c828ac920d533614f4d864241 100644 --- a/tupak/core/prior.py +++ b/tupak/core/prior.py @@ -245,6 +245,14 @@ class Prior(object): """ return None + def prob(self, val): + """Return the prior probability of val, this should be overwritten""" + return np.nan + + def ln_prob(self, val): + """Return the prior ln probability of val, this should ideally be overwritten""" + return np.log(self.prob(val)) + @staticmethod def test_valid_for_rescaling(val): """Test if 0 < val < 1"""