nltk.ProbDistI.prob

ProbDistI.prob(sample)[source]

Return the probability for a given sample. Probabilities are always real numbers in the range [0, 1].

Parameters:sample (any) – The sample whose probability should be returned.
Return type:float