Public Member Functions | |
def | __init__ |
def | __call__ |
Wrapper for posterior used with the :class:`PTSampler` in emcee.
Definition at line 22 of file ptsampler.py.
def emcee.ptsampler.PTPost.__init__ | ( | self, | |
logl, | |||
logp, | |||
beta | |||
) |
:param logl: Function returning natural log of the likelihood. :param logp: Function returning natural log of the prior. :param beta: Inverse temperature of this chain: ``lnpost = beta*logl + logp``.
Definition at line 28 of file ptsampler.py.
def emcee.ptsampler.PTPost.__call__ | ( | self, | |
x | |||
) |
Returns ``lnpost(x)``, ``lnlike(x)`` (the second value will be treated as a blob by emcee), where .. math:: \ln \pi(x) \equiv \beta \ln l(x) + \ln p(x) :param x: The position in parameter space.
Definition at line 45 of file ptsampler.py.