Example #1
0
    def distance(self, rhs, method='MSE'):
        """Calculate the distance between myself and another PPR using method:
			method =	'MSE': Mean Squared Error
								'KL': KL divergance
		"""
        if method == None:
            method = "MSE"
        return PSSM.distance(self.pssm, rhs.pssm, method)
Example #2
0
    def distance(self, rhs, method="MSE"):
        """Calculate the distance between myself and another PPR using method:
			method =	'MSE': Mean Squared Error
								'KL': KL divergance
		"""
        if method == None:
            method = "MSE"
        return PSSM.distance(self.pssm, rhs.pssm, method)