'Return the sample\'s probability.
:param sample: sample of the event
:type sample: str
:rtype: float'

def prob(self, sample):

    count = self._freqdist[sample]
    p = self._prob_measure(count)
    if (count == 0):
        if (self._bins == self._freqdist.B()):
            p = 0.0
        else:
            p = (p / (self._bins - self._freqdist.B()))
    else:
        p = (p * self._renormal)
    return p
