def lnfunc(self,args):
# define the function which needs to be sampled (log posterior)
# Do not use self.args in this function. You can use self.eargs.
return scipy.stats.norm.logpdf(args['x'],loc=args['mu'],scale=args['sigma'])
评论列表
文章目录