'Return ``log(p)``, where ``p`` is the probability associated
with this object.
:rtype: float'

def logprob(self):

    if (self.__logprob is None):
        if (self.__prob is None):
            return None
        self.__logprob = math.log(self.__prob, 2)
    return self.__logprob
