:py:mod:`nessai.evidence` ========================= .. py:module:: nessai.evidence .. autoapi-nested-parse:: Functions related to computing the evidence. .. !! processed by numpydoc !! Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: nessai.evidence.logsubexp nessai.evidence.log_integrate_log_trap Attributes ~~~~~~~~~~ .. autoapisummary:: nessai.evidence.logger .. py:data:: logger .. !! processed by numpydoc !! .. py:function:: logsubexp(x, y) Helper function to compute the exponential of a difference between two numbers Computes: ``x + np.log1p(-np.exp(y-x))`` :Parameters: **x, y** : float or array_like Inputs .. !! processed by numpydoc !! .. py:function:: log_integrate_log_trap(log_func, log_support) Trapezoidal integration of given log(func). Returns log of the integral. :Parameters: **log_func** : array_like Log values of the function to integrate over. **log_support** : array_like Log prior-volumes for each value. :Returns: float Log of the result of the integral. .. !! processed by numpydoc !!