ensemble_hic/analysis_functions.py
def calculate_evidence(dos):
    """Calculates the evidence from a DOS object

    :param dos: DOS object (output from calculate_DOS)
    :type dos: DOS
    :returns: log-evidence (without additive constants stemming from likelihood
              normalization)
    :rtype: float
    """
    
    from csb.numeric import log_sum_exp

    return log_sum_exp(-dos.E.sum(1) + dos.s) - \
           log_sum_exp(-dos.E[:,1] + dos.s)
Calculates the evidence from a DOS object

    :param dos: DOS object (output from calculate_DOS)
    :type dos: DOS
    :returns: log-evidence (without additive constants stemming from likelihood
              normalization)
    :rtype: float
    
Calculates the evidence from a DOS object
Calculates the evidence from a DOS object
def calculate_evidence(dos):
    from csb.numeric import log_sum_exp
    return log_sum_exp(-dos.E.sum(1) + dos.s) - \
           log_sum_exp(-dos.E[:,1] + dos.s)
def calculate_evidence ( dos ) : from csb . numeric import log_sum_exp return log_sum_exp ( - dos . E . sum ( 1 ) + dos . s ) - log_sum_exp ( - dos . E [ : , 1 ] + dos . s )
Calculates the evidence from a DOS object
Calculates the evidence from a DOS object
"""Calculates the evidence from a DOS object

    :param dos: DOS object (output from calculate_DOS)
    :type dos: DOS
    :returns: log-evidence (without additive constants stemming from likelihood
              normalization)
    :rtype: float
    """
log-evidence (without additive constants stemming from likelihood
normalization)
log - evidence ( without additive constants stemming from likelihood normalization )
float
dos
DOS object (output from calculate_DOS)
DOS object ( output from calculate_DOS )