gstlal-inspiral  0.4.2
 All Classes Namespaces Files Functions Variables Pages
List of all members | Public Member Functions
emcee.ptsampler.PTPost Class Reference

Public Member Functions

def __init__
def __call__

Detailed Description

Wrapper for posterior used with the :class:`PTSampler` in emcee.

Definition at line 22 of file ptsampler.py.

Constructor & Destructor Documentation

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.

Member Function Documentation

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.


The documentation for this class was generated from the following file: