ensemble_hic/backbone_prior.py
def _evaluate_log_prob(self, structures):
        """Evaluates log-probability of a structure ensemble

        :param structures: coordinates of structure ensemble
        :type structures: :class:`numpy.ndarray`

        :returns: log-probability of the structure ensemble
        :rtype: float
        """

        log_prob = self._single_structure_log_prob
        X = structures.reshape(self.n_structures, -1, 3)
        mr = self._mol_ranges
        ll, ul = self.lower_limits, self.upper_limits

        def ss_lp(x):
            return np.sum([log_prob(x[mr[i]:mr[i+1]], ll[i], ul[i])
                           for i in range(len(mr) - 1)])
            
        return np.sum(map(lambda x: ss_lp(x), X))
Evaluates log-probability of a structure ensemble

        :param structures: coordinates of structure ensemble
        :type structures: :class:`numpy.ndarray`

        :returns: log-probability of the structure ensemble
        :rtype: float
        
Evaluates log-probability of a structure ensemble
Evaluates log - probability of a structure ensemble
def _evaluate_log_prob(self, structures):
        log_prob = self._single_structure_log_prob
        X = structures.reshape(self.n_structures, -1, 3)
        mr = self._mol_ranges
        ll, ul = self.lower_limits, self.upper_limits
        def ss_lp(x):
            return np.sum([log_prob(x[mr[i]:mr[i+1]], ll[i], ul[i])
                           for i in range(len(mr) - 1)])
        return np.sum(map(lambda x: ss_lp(x), X))
def _evaluate_log_prob ( self , structures ) : log_prob = self . _single_structure_log_prob X = structures . reshape ( self . n_structures , - 1 , 3 ) mr = self . _mol_ranges ll , ul = self . lower_limits , self . upper_limits def ss_lp ( x ) : return np . sum ( [ log_prob ( x [ mr [ i ] : mr [ i + 1 ] ] , ll [ i ] , ul [ i ] ) for i in range ( len ( mr ) - 1 ) ] ) return np . sum ( map ( lambda x : ss_lp ( x ) , X ) )
Evaluates log-probability of a structure ensemble
Evaluates log - probability of a structure ensemble
"""Evaluates log-probability of a structure ensemble

        :param structures: coordinates of structure ensemble
        :type structures: :class:`numpy.ndarray`

        :returns: log-probability of the structure ensemble
        :rtype: float
        """
log-probability of the structure ensemble
log - probability of the structure ensemble
float
self
structures
coordinates of structure ensemble
coordinates of structure ensemble