Home | Trees | Index | Help |
|
---|
Package nltk_lite :: Module probability :: Class UniformProbDist |
|
object
--+ |ProbDistI
--+ | UniformProbDist
Method Summary | |
---|---|
Construct a new uniform probability distribution, that assigns equal probability to each sample in samples . | |
__repr__(self)
| |
any |
Return the sample with the greatest probability. |
float |
Return the probability for a given sample. |
list
|
Return a list of all samples that have nonzero probabilities. |
Inherited from ProbDistI :
logprob
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__str__
|
Method Details |
---|
__init__(self,
samples)
Construct a new uniform probability distribution, that assigns equal
probability to each sample in |
max(self)
|
prob(self, sample)
|
samples(self)
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Tue Sep 5 09:37:21 2006 | http://epydoc.sf.net |