def lnfunc(self,args):
# log posterior, xt has been integrated out
sigma=np.sqrt(args['sigma']*args['sigma']+args['sigma_x']*args['sigma_x'])
temp=scipy.stats.norm.logpdf(args['x'],loc=args['mu'],scale=sigma)
return temp
评论列表
文章目录