def logprob(self, sample):
        # Default definition, in terms of prob()
        p = self.prob(sample)
        return (math.log(p, 2) if p != 0 else _NINF)
Return the base 2 logarithm of the probability for a given sample.
dataset/ETHPy150Open nltk/nltk/nltk/probability.py/ProbDistI.logprob