Beispiel #1
0
    def propose(self):
        ret = copy(self)
        ret.value = ilogit(norm.rvs(loc=logit(self.value), scale=self.proposal_sd))

        return ret, 0.0 # symmetric
Beispiel #2
0
    def propose(self):
        ret = copy(self)
        ret.value = ilogit(
            norm.rvs(loc=logit(self.value), scale=self.proposal_sd))

        return ret, 0.0  # symmetric
Beispiel #3
0
 def compute_prior(self):
     return norm.logpdf(logit(self.value), loc=self.mean, scale=self.sd)
Beispiel #4
0
 def compute_prior(self):
     return norm.logpdf(logit(self.value), loc=self.mean, scale=self.sd)