示例#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
示例#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
示例#3
0
 def compute_prior(self):
     return norm.logpdf(logit(self.value), loc=self.mean, scale=self.sd)
示例#4
0
 def compute_prior(self):
     return norm.logpdf(logit(self.value), loc=self.mean, scale=self.sd)